Skip to content
SQL injection Write-up Beginner

From Job Hunting to Bug Hunting: Discovering an SQL Injection Vul

A URL parameter on a job vacancy page was vulnerable to SQL injection, as shown by a database error when a single quote was added. An attacker could use this to enumerate databases and potentially extract data.

Wonde D Follow

Published on medium.com

While searching for job opportunities, I came across a vacancy posted on vacancy.example.com for a Web Penetration Tester. Naturally, I clicked on it out of curiosity.

Wonde D, 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 improper input sanitisation: user input was concatenated into SQL queries without proper escaping or parameterisation.

Impact

An attacker could enumerate databases and potentially extract or modify data, though the text does not show actual data extraction.

What the attacker needed

None

How it was found

  1. Open the job detail page and note the URL parameters.
  2. Add a single quote to the end of the pdate parameter.
  3. Observe the SQL error message returned by the application.
  4. Use SQLMap on the pdate parameter to confirm the injection.
  5. Use SQLMap to enumerate the 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, so special characters can change the command's meaning. Here, adding a quote to a web address caused a database error, showing the input was not handled safely. This could let someone read or change data in the 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.

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.