Critical [9.8] SQL Injection in a Major Indonesian Web Hosting
An outdated LearnPress plugin on a WordPress site exposed an unauthenticated SQL injection through the order_by parameter. An attacker could use this to read database contents, as demonstrated by listing available databases.
While exploring vulnerabilities in a major web hosting company in Indonesia, I discovered a critical SQL injection vulnerability in their online course platform. Although I am unable to disclose the company name or specific platform, this writeup outlines the discovery process and demonstrates the impact of the…
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
Root cause
Likely the LearnPress plugin failed to properly sanitise the order_by parameter before using it in a SQL query.
Impact
An unauthenticated attacker could read the database, potentially exposing sensitive data.
What the attacker needed
Outdated LearnPress plugin; no authentication needed
The fix
The plugin should be updated to a version that fixes the SQL injection.
How it was found
- Identify the site uses WordPress with the LearnPress plugin.
- Find the API endpoint that accepts the order_by parameter.
- Use sqlmap to confirm the parameter is injectable.
- Use sqlmap to list available 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 when a website puts user input directly into a database command, letting an attacker change the command. Here, a parameter that sorts course listings was not properly checked, so an attacker could ask the database to reveal its contents.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.