Skip to content
SQL injection Write-up Beginner

LinPHA <= 1.3.1 (new_images.php) SQL Injection Vulnerability

The img_view.class.php script in LinPHA did not sanitise the 'order' parameter, allowing an attacker to inject SQL queries into the back-end database. This could let them manipulate or disclose arbitrary data.

karmainsecurity.com

Published on karmainsecurity.com

LinPHA contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the /include/imgview.class.php script not properly sanitizing user-supplied input passed via the ‘order’ parameter to the include/imgview.class.php script.

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

Impact

An attacker could manipulate or disclose arbitrary data in the back-end database.

What the attacker needed

Access to the img_view script

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 web page took a value from the user and put it straight into a database command without cleaning it first. An attacker could change that value so the database runs their own commands, which might reveal or alter stored 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.