Skip to content
SQL injection Write-up Beginner

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.

N45HT Follow

Published on medium.com

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…

N45HT, on medium.com

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

  1. Identify the site uses WordPress with the LearnPress plugin.
  2. Find the API endpoint that accepts the order_by parameter.
  3. Use sqlmap to confirm the parameter is injectable.
  4. 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.

More by N45HT

View all

5 more disclosed reports, best first.

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.