Skip to content
SQL injection Write-up Beginner

How I Hacked My College’s Website and Found a CVE Affecting 100

The login flow of a college web portal was vulnerable to SQL injection, and the same product was deployed across many institutions. An attacker could read or modify student and faculty data, and in some configurations escalate to operating-system command execution.

Mohammed Afnaan Ahmed Follow

Published on infosecwriteups.com

When I started testing my college’s website, I wasn’t trying to “hack” anything in the dramatic sense.

Mohammed Afnaan Ahmed, on infosecwriteups.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 passed user input into SQL queries without proper parameterisation, and some deployments ran the database with permissions that allowed command execution.

Impact

Student and faculty data could be exposed or modified, exam results changed, and in some configurations operating-system level command execution could be achieved; the product was shipped to over 100 institutions holding about a million students' data.

What the attacker needed

Access to the login page; vulnerable product deployment

The fix

The text says fixes were attempted, retested and refined through CERT/CC coordination until the issue was resolved and a CVE assigned.

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 sends what you type to a database. If the site builds database commands by gluing your text straight in, a crafted input can change the command itself. That is SQL injection, and here it could let someone read or change records, or even run commands on the server.

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.