Skip to content
SQL injection Write-up Intermediate

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.

Corben Leo Follow

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.

Corben Leo, on corben.io

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

  1. Visit the forumrunner request URL with a single quote in the postids parameter to trigger an SQL error.
  2. Use SQLMap with the vulnerable parameter to attempt extraction, but a WAF blocks it.
  3. Find the backend IP address via Censys to bypass the WAF.
  4. 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.

More by Corben Leo

View all

9 more disclosed reports, best first.

More from Asus

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.