Blind SQL Injection
A login form on a subdomain was vulnerable to blind SQL injection through the phone number field, which the reporter confirmed with a time-based test. An attacker could use this to bypass authentication and read or change database contents.
- Triaged in 49 days
- Fixed in 6 months
- Disclosed after 7 months
Summary by the researcher
How I Found Sql Injection on 8x8 , Cengage ,Comodo ,Automattic ,intel ,IBM ,MTN Group ,uis.cam.ac.uk ,volvocars.biz ,asus.com https://ahmadaabdulla.medium.com/how-i-found-sql-injection-on-8x8-cengage-comodo-automattic-20-company-c296d1a09f63
The report
hello dear support
I have found Blind SQL Injection on https://futexpert.mtngbissau.com/signin/ parameters injectable phone_number=0&pin=1&submit=Continuar via post URL:https://futexpert.mtngbissau.com/signin/ Post: email=0 my payload : phone_number=0'XOR(if(now()=sysdate()%2Csleep(0)%2C0))XOR'Z&pin=1&submit=Continuar
HTTP request
POST /signin/ HTTP/1.1
Host: futexpert.mtngbissau.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 116
Origin: https://futexpert.mtngbissau.com
Connection: close
Referer: https://futexpert.mtngbissau.com/signin/
Cookie: _ga=GA1.2.807090149.1609258213; _gid=GA1.2.432006610.1609466934; PHPSESSID=87pejs8h0usb0ill37hit63an5
Upgrade-Insecure-Requests: 1
phone_number=0%27XOR%28if%28now%28%29%3Dsysdate%28%29%2Csleep%2812%29%2C0%29%29XOR%27Z+%3D%3E&pin=1&submit=Continuar
if you need more info I'm here thank you
Impact
An attacker can use SQL injection it to bypass a web application's authentication and authorization mechanisms and retrieve the contents of an entire database. SQLi can also be used to add, modify and delete records in a database, affecting data integrity. Under the right circumstances, SQLi can also be used by an attacker to execute OS commands, which may then be used to escalate an attack even further.
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 phone number input was concatenated into a database query without proper parameterisation, allowing injected SQL to run.
Impact
An attacker could bypass authentication and authorisation and retrieve, add, modify or delete database records, and under the right circumstances run operating system commands.
What the attacker needed
Reachable sign-in page
How it was found
- Send a POST request to the sign-in endpoint with the phone number, PIN and submit fields.
- Put a time-based SQL condition in the phone number field instead of a real number.
- Observe the delayed response to confirm the injection works.
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 sends what you type to a database to check it. Here the phone number field was not handled safely, so text typed into it could be treated as database instructions. The reporter used a trick that makes the server pause for a set time to prove the instructions were running.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.