Skip to content
SQL injection Disclosed report Beginner

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.

Davide Tampellini Follow

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

  1. Visit page https://█████████/Registration/Home/New
  2. Start a new registration process with "regular" data
  3. The request is correctly processes
  4. Start a new registration process and use a double quote as first name
  5. 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.

The original report as published on HackerOne, by tampe125. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Visit the registration page.
  2. Start a new registration with regular data.
  3. Observe the request is processed correctly.
  4. Start another registration and use a double quote as the first name.
  5. 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.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.