Skip to content
SQL injection Write-up Intermediate

OpenConf <= 4.11 (author/edit.php) SQL Injection Vulnerability

The author/edit.php script in OpenConf does not properly sanitise the 'pid' POST parameter, allowing an attacker to carry out a blind SQL injection attack. This could let an attacker manipulate or disclose arbitrary data in the back-end database.

karmainsecurity.com

Published on karmainsecurity.com

OpenConf contains a flaw that may allow an attacker to carry out a blind SQL injection attack. The issue is due to the author/edit.php script not properly sanitizing user-supplied input passed via the ‘pid’ POST parameter.

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 'pid' POST parameter is concatenated into a SQL query without proper sanitisation or parameterisation.

Impact

An attacker could manipulate or disclose arbitrary data in the back-end database, but exploitation requires at least one record in the paper table and the 'Edit Submission' feature to be enabled.

What the attacker needed

At least one record in the paper table; 'Edit Submission' feature enabled

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 when a program puts user input directly into a database command without cleaning it first. Here, a value sent in a form field called 'pid' is used in a database query, so an attacker can change the query to read or alter data they should not see. The attack is 'blind' because the attacker cannot see the query results directly and must infer them from the site's behaviour.

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.