Skip to content
SQL injection Write-up Beginner

How I hacked RD Sharma’s Publisher Website?

The admin login page of a book publisher's e-commerce site was vulnerable to SQL injection, and a basic payload bypassed authentication. An attacker could log into the admin panel and manage orders and inventory.

abhayvis Follow

Published on abhayvis.medium.com

This is the story when I was in my 11th class, one day I was just searching to buy maths book on the internet and RD Sharma was one of the best books for boards prep so, I thought to buy it.

Abhay Vishwakarma, on abhayvis.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 login form inserted user input directly into a SQL query without parameterisation, so a crafted input altered the query's logic.

Impact

An attacker could reach the admin panel and manage orders and inventory.

What the attacker needed

Access to the admin login page; no account needed

The fix

The bug was fixed on the same day after the researcher reported it.

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.

A login form usually checks your username and password against a database. Here the site built its database query in a way that let a crafted login input skip the password check entirely, so the person got into the admin area without valid credentials.

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.