System Error Reveals Sensitive SQL Call Data
The login endpoint returns a detailed stack trace when a very long username is submitted, exposing internal SQL error information. An attacker could use this to learn about the database system and plan further attacks.
Originally disclosed on HackerOne
- Triaged in 12 hours
- Fixed in 3 months
- Disclosed after 3 months
Summary: If you attempt to login at https://███.mil/sso/LoginRequest.do using a very long username, the application will respond showing a stack trace information with sensitive SQL data call information. This reveals too much information about SQL calls to the database. Please see the attached PoC video.
Description: Login at https://██████████.mil/sso/LoginRequest.do using a very long username and the application will respond showing a stack trace information with sensitive SQL data call information.
Step-by-step Reproduction Instructions
(1) Go to https://██████.mil/sso/LoginRequest.do (2) Enter in any username and password and Intercept the request with Burp Suite. (3) Generate a long string of characters such as 100,000 characters and enter that into the "username" field and send the request. (4) Observe the stack trace error and observe the following information below showing sensitive SQL data: Internal Exception: java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested Error Code: 1460 ██████████
████████
█████████
Suggested Mitigation/Remediation Actions:
Remove any mention of the SQL database calls in the stack trace error.
##References: https://owasp.org/www-community/Improper_Error_Handling
Impact
Attacker can use the error messages to gain further knowledge of the SQL system to launch future attacks.
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 use the error messages to gain further knowledge of the SQL system to launch future attacks.
What the attacker needed
Access to the login page; ability to intercept requests
The fix
The application should be fixed to remove any mention of SQL database calls from stack trace errors shown to users.
How it was found
- Go to the SSO login page.
- Enter any username and password, and intercept the request with Burp Suite.
- Replace the username with a very long string of characters and send the request.
- Observe the stack trace error containing SQL details.
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.
When a website has a bug, it sometimes shows a detailed error message with technical database details. Here, a very long username caused the site to reveal an SQL error code. This helps an attacker understand how the site is built and what other attacks might work.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.