Skip to content
SQL injection Write-up Beginner

DeluxeBB <= 1.2 (forums.php) SQL Injection Vulnerability

The forums.php script in DeluxeBB 1.2 does not properly sanitise the 'sort' variable, allowing an attacker to inject or manipulate SQL queries in the back-end database.

karmainsecurity.com

Published on karmainsecurity.com

DeluxeBB contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the ‘forums.php’ script not properly sanitizing user-supplied input to the ‘sort’ variable.

The author, on karmainsecurity.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 'sort' parameter is concatenated into an SQL query without sanitisation or parameterisation.

Impact

An attacker could inject or manipulate SQL queries in the back-end database, potentially reading or changing stored data.

What the attacker needed

Access to forums.php with a sort parameter

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.

This is a SQL injection bug. The forum software takes a value from the user (the 'sort' setting) and puts it straight into a database command without cleaning it first, so an attacker can change the command to read or alter data.

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.