Skip to content
SQL injection Write-up Beginner

Find a bug in University website

The admin login panel of a university website was vulnerable to SQL injection, allowing the author to gain administrative access and view sensitive student data. The author also found an XSS vulnerability on the site.

medium.com

Published on medium.com

Sorry, I forgot to introduce myself. My name is Sondip Day Shuvo, and I am a BSc in Computer Science and Engineering (CSE) student from Bangladesh.

sondip day, 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 login form did not properly sanitise user input before using it in a database query, allowing SQL injection.

Impact

The attacker could modify or remove website information and view sensitive data of about 72,560 students, including national ID numbers, names, and phone numbers.

What the attacker needed

None

The fix

The vulnerabilities were resolved after the author contacted the community.

How it was found

  1. Fuzz the website to find hidden URLs, including an admin login panel.
  2. Try normal login credentials, which fail.
  3. Try SQL injection techniques, which initially fail.
  4. Modify the input slightly and successfully log in as admin.

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 that is not properly protected can let an attacker trick the database into letting them in without a real password. This is called SQL injection. Once inside, the attacker could see and change private information.

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.