Skip to content
SQL injection Write-up Beginner

Security Vulnerabilities in IIT KGP Web Applications

The author found SQL injection and HTML injection in IIT KGP web applications. The SQL injection exposed PAN numbers, vendor details, and phone numbers, while HTML injection allowed injecting tags like <a> and <h1> but not <script>.

medium.com

Published on medium.com

Click hereif not a member

StvRoot, 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 did not properly sanitise user input before using it in SQL queries and before displaying it on the page.

What the attacker needed

Access to the web application

How it was found

  1. Gather domains using subfinder and crt.sh.
  2. Check which subdomains are alive with httpx-toolkit.
  3. Scan ports with naabu and nmap.
  4. Run SQLMAP on a vulnerable endpoint to exploit SQL injection.
  5. Inject HTML tags such as <a> and <h1> into a page that reflects input.

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 a way to trick a website's database into revealing or changing information by inserting commands into input fields. HTML injection lets an attacker put their own formatting or links on a page, which can be used to mislead users. Here, the database leaked personal and business data, and the page allowed some HTML but blocked scripts.

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.