Skip to content
SQL injection Write-up Beginner

how i got into the server of our university.

A registration form on a university WordPress site was vulnerable to SQL injection in the username field, which the author exploited with an automated tool to dump the database and obtain an operating-system shell. The dumped data included admin password hashes and student emails, and the author used the recovered admin credentials to log into the WordPress dashboard.

mesterx54 Follow

Published on medium.com

welcome amazing hackers . mesterx54 is here this is my story about how i got an RCE and SQLI on our university website . without waising your time let’s begine …

Abdeladime Mk (mesterx54), 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 registration form passed the username value into a database query without proper parameterisation, allowing injected SQL to run.

Impact

The author could read the whole database, including admin password hashes and student emails, run commands on the server, and log into the WordPress admin dashboard.

What the attacker needed

Public registration form; no authorisation from the owner

How it was found

  1. Open the university website and note it runs WordPress with PHP and MySQL.
  2. Find the login and registration page.
  3. Fill in the registration form and put a single quote in the username field, which returns a blank page.
  4. Run an active scanner in Burp Suite, which reports SQL injection.
  5. Run sqlmap against the username parameter to dump database names and open a shell.
  6. Use the dumped admin hash to log into the WordPress dashboard.

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 website that builds database commands directly from what you type can be tricked by special characters into running extra commands. Here a single quote in a sign-up form made the server error, showing the input was being pasted into a database query. The author then used a tool to read the whole database and even run commands on the server itself.

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.