SQL Injection in rog.asus.com
The vBulletin forumrunner module on rog.asus.com was vulnerable to SQL injection because the postids parameter was only filtered as a string, not properly sanitised. An attacker could exploit this to inject SQL commands, potentially extracting data from the database.
Published on corben.io
To get started, I'll give a bit of backstory behind this. I found this bug back in January of 2017 and was one of the first reports I made to a company.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could potentially extract data from the database, but a WAF initially blocked extraction until bypassed via the backend IP.
What the attacker needed
Access to the forumrunner endpoint; knowledge of the vulnerable parameter
The fix
The vulnerability was fixed by the vendor within two days after the report.
How it was found
- Visit the forumrunner request URL with a single quote in the postids parameter to trigger an SQL error.
- Use SQLMap with the vulnerable parameter to attempt extraction, but a WAF blocks it.
- Find the backend IP address via Censys to bypass the WAF.
- Run SQLMap against the backend IP to list all databases.
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 write-up has not been written yet. The Original tab links to the source.
SQL injection is a flaw where user input is inserted into database commands without proper cleaning, letting an attacker change the command. Here, a parameter called postids was only checked to be a string, so an attacker could add SQL code to it. This could let them read or change data in the forum's 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.