SQL Injection vulnerability found on IBM.com subdomain
A boolean-based SQL injection existed in an IBM.com subdomain application because user-controlled POST parameters were handled insecurely. An attacker could send crafted requests to extract data character by character, potentially dumping stored records and sensitive user data.
- Triaged in 22 hours
- Fixed in 3 months
- Disclosed after 5 months
Summary by the program
SQL Injection vulnerability found on IBM.com subdomain was reported to IBM, analyzed and has been remediated. Thank you to our external researcher @570rm_.
Summary by the researcher
I found a boolean-based SQL injection vulnerability in an application on an IBM.com subdomain, caused by the insecure handling of certain parameters in user controlled POST request bodies.
Payloads:
{"<param>":"█████ IS NOT NULL AND LENGTH('abc') = 3 ORDER BY UPDATED DESC LIMIT 1"}
The condition is true, and the application returns 200 OK.
{"<param>":"█████ IS NOT NULL AND LENGTH('abc') = 4 ORDER BY UPDATED DESC LIMIT 1"}
The condition is false, and the application returns 500 Internal Server Error.
{"<param>":"█████ = '[email protected]' AND ASCII(SUBSTR(CHAR((SELECT CURRENT DATE FROM SYSIBM.SYSDUMMY1)), 1, 1)) = 50"}
The database’s CURRENT DATE value is in the year 2026, so the first character of the date string is 2. Its ASCII value is 50, making the condition true. The application returns 200 OK.
{"<param>":"█████ = '[email protected]' AND ASCII(SUBSTR(CHAR((SELECT CURRENT DATE FROM SYSIBM.SYSDUMMY1)), 1, 1)) = 51"}
The first character of the date string is 2, whose ASCII value is not 51. Therefore, the condition is false, and the application returns 500 Internal Server Error.
Since the app returns 200 for true and 500 for false, an attacker can extract data character by character to enumerate database names, dump stored records, and access sensitive user data.
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 application built SQL queries by concatenating user-controlled POST parameters instead of using parameterised queries or proper input validation.
Impact
An attacker could extract data character by character to enumerate database names, dump stored records, and access sensitive user data.
What the attacker needed
Ability to send POST requests to the subdomain
The fix
The vulnerability was remediated by IBM.
How it was found
- Send a POST request with a parameter containing a condition that is true; the application returns 200 OK.
- Send a similar request with a condition that is false; the application returns 500 Internal Server Error.
- Use a condition comparing the first character of the database's current date to an ASCII value; a true condition returns 200 OK.
- Change the ASCII value so the condition is false; the application returns 500 Internal Server Error.
- Repeat with different conditions to extract data character by character.
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.
SQL injection is when user input is inserted into a database query without proper separation, so the input can change the query's meaning. Here, the attacker sent requests that made the database answer true or false, and the server's different responses revealed the answers. By repeating this, an attacker can slowly read data 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.