Skip to content
SQL injection Write-up Intermediate

LibreNMS sort multiple authenticated SQL injections

LibreNMS 1.65 has multiple SQL injection vulnerabilities in the sort parameter of the /ajax_table.php endpoint. An authenticated attacker with normal privileges could gain access to the database used by LibreNMS.

shielder.com

Published on shielder.com

LibreNMS 1.65 is affected by multiple SQL Injection vulnerabilities via the sort parameter in the /ajaxtable.php API endpoint. A ’normal’ privileges attacker can gain access to the database in use by LibreNMS.

The author, on shielder.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 directly into SQL queries without parameterisation or validation.

Impact

An authenticated attacker with normal privileges could gain access to the database used by LibreNMS.

What the attacker needed

Authenticated account with normal privileges

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 user input is inserted into a database query without proper handling, letting an attacker change the query. Here, a logged-in user with normal rights could send a crafted sort value to a specific page and read data from the database.

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.