Skip to content
SQL injection Write-up Beginner

0Day SQLi Discovered during internal PenTesting

A SQL injection vulnerability was found in the 'task' parameter of a delete-task function, allowing an attacker to inject SQL commands. This could lead to deletion of tasks and potentially more severe database compromise.

SentinelXTeam Follow

Published on medium.com

Hey everyone, we have a special thing today, our founder, aka Jbr ALOTaibi discovered a new SQLi in the software of this CVE “CVE-2024–24142”.

SentinelX Research, 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 application concatenates the 'task' parameter directly into an SQL query without proper sanitisation or parameterisation.

Impact

An attacker could delete arbitrary tasks and potentially execute arbitrary SQL commands, leading to data loss or further compromise.

What the attacker needed

Access to the delete-task functionality; ability to control the 'task' parameter

How it was found

  1. Identify the 'task' parameter in the delete-task functionality.
  2. Inject a single quote into the 'task' parameter to trigger an SQL error.
  3. Observe the SQL syntax error, confirming the injection point.
  4. Craft a proof-of-concept exploit to manipulate the SQL query.

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 user input is inserted directly into a database command, letting an attacker change the command. Here, the 'task' parameter was not properly sanitised, so a single quote caused an error, showing the input was being used in SQL. An attacker could then run their own database commands.

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 SentinelXTeam

View all

1 more disclosed report, 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.