Skip to content
SQL injection Write-up Beginner

Finding SQL Injection Using Wayback Machine

A SQL injection vulnerability was found in a URL parameter of a product page, discovered by retrieving archived URLs with the Wayback Machine. An attacker could use SQLMap to extract database names and tables from the backend database.

medium.com

Published on medium.com

I hope this article proves helpful for you. Today, I am sharing my experience of finding an SQL injection vulnerability using the Wayback Machine.

Muhammad Waseem, 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 product page passed the 'cat' parameter into a SQL query without proper sanitisation or parameterisation.

Impact

An attacker could read database names and table structures, and potentially extract sensitive data, though the text only confirms enumeration of databases and tables.

What the attacker needed

Target has archived URLs with parameters; tools waybackurls and sqlmap installed

How it was found

  1. Install waybackurls and sqlmap.
  2. Choose a target domain.
  3. Use waybackurls to list archived URLs and filter for ones with parameters.
  4. Test a candidate URL with sqlmap to confirm injection.
  5. Extract database names with sqlmap.
  6. List tables from the identified database with sqlmap.

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 in a product page URL was vulnerable, and a tool called SQLMap was used to list the database names and tables. The author found the old URL by looking at archived copies of the site.

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.