Skip to content
SQL injection Write-up Advanced

Breaking Down Barriers: Exploiting Pre-Auth SQL Injection In WhatsUp Gold - CVE-2024-6670

An unauthenticated SQL injection in the HasErrors method allowed an attacker to execute arbitrary SQL. The attacker used a separate unauthenticated encryption endpoint to encrypt a known password, then used the SQL injection to copy that encrypted value into the administrator password field, enabling login as admin.

Sina Kheirkhah Follow

Published on summoning.team

I discovered an unauthenticated SQL injection against the latest version of progress whatsup gold and turned it into a authentication bypass, after that the product by design allows you to achieve RCE (that part is up to you), lets talk about how this was possible

Sina Kheirkhah (@SinSinology), on summoning.team

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

The application concatenated the user-controlled classId parameter directly into a SQL query without parameterisation or sanitisation.

Impact

An unauthenticated attacker could bypass authentication and gain administrative access, which by design allows remote code execution on managed systems.

What the attacker needed

Network access to the WhatsUp Gold instance; no authentication required

How it was found

  1. Send a POST request to the HasErrors endpoint with a crafted classId value containing SQL.
  2. Use the SQL injection to update a table with the encrypted password from GlobalSettings.
  3. Retrieve the encrypted password via a separate endpoint.
  4. Use the SQL injection again to update the administrator password field with the encrypted value.
  5. Log in as administrator with the chosen password.

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.

The software took a user-supplied value and inserted it directly into a database query without checking it. This let an attacker run their own database commands. The attacker also found a way to make the software encrypt a password of their choice, then used the database command to replace the admin's password with that encrypted value, so they could log in as admin.

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 Sina Kheirkhah

View all

17 more disclosed reports, best first.

More from Progress (WhatsUp Gold)

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.