LibreNMS address authenticated SQL injection
LibreNMS 1.65 is vulnerable to SQL injection through the address parameter in the ajax_table.php endpoint. An authenticated attacker with normal privileges could access the underlying database.
shielder.com
Published on shielder.com
LibreNMS 1.65 is affected by a SQL Injection vulnerability via the address parameter in the /ajaxtable.php API endpoint. A ’normal’ privileges attacker can gain access to the database in use by LibreNMS.
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 address parameter is concatenated into a SQL query without parameterisation or validation.
Impact
An 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's meaning. Here, a logged-in user with ordinary rights could send a crafted value in the address parameter to read data from the LibreNMS 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.