LDAP Injection at ██████
The registration form did not sanitise user input before passing it to an LDAP query, so a double quote in the first name field caused a fatal LDAP error. An attacker could use this to enumerate the domain or exfiltrate data, and potentially bypass manual account activation.
Originally disclosed on HackerOne
- Triaged in 48 hours
- Fixed in 37 days
- Disclosed after 18 months
Summary: An LDAP Injection has been found at the mentioned domain
Description: While performing a user registration, is it possible to edit the request and inject invalid characters, resulting in a LDAP injection
Step-by-step Reproduction Instructions
- Visit page https://█████████/Registration/Home/New
- Start a new registration process with "regular" data
- The request is correctly processes
- Start a new registration process and use a double quote as first name
- You will get a fatal error
Attached you can find the rogue request and the screenshot of the fatal error.
Error 0x80005000 is specific of LDAP, this means that the application is trying to handle user data without sanitizing it
Suggested Mitigation/Remediation Actions
Application should sanitize all user input before trying to store it in any way.
Impact
Attacker could enumerate current domain or exfiltrate data.
On more practical terms, since user should be manually validated, attacker could bypass such activation.
That's a serious threat, because all requests must be approved and verified by other US Officers.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could enumerate the domain or exfiltrate data, and could potentially bypass the manual activation step, though the report does not demonstrate full exploitation.
What the attacker needed
Access to the registration page
The fix
The application should sanitise all user input before using it in LDAP queries.
How it was found
- Visit the registration page.
- Start a new registration with regular data.
- Observe the request is processed correctly.
- Start another registration and use a double quote as the first name.
- Observe a fatal error.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
LDAP is a directory service used to store and look up user information. When a website puts user input directly into an LDAP query without cleaning it, special characters like a double quote can break the query or change its meaning. Here, entering a double quote as a first name caused a server error, showing the input reached the LDAP query unsanitised.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.