🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #7088

Bug#1156090: cacti: GHSA-5x85-g4vc-gq53: Authenticated SQL injection (stacked queries) via unvalidated profile setting reaching ...

#7088
From: Salvatore Bonaccorso
Date: Tue, 01 Dec 2026 21:10
30 lines
4001 bytes
Source: cacti
Version: 1.2.31+ds1-4
Severity: grave
Tags: security upstream
Justification: user security hole
Forwarded: https://github.com/Cacti/cacti/pull/9013 https://github.com/Cacti/cacti/pull/9014
X-Debbugs-Cc: carnil@debian.org, Debian Security Team <team@security.debian.org>

Hi

From
https://github.com/Cacti/cacti/security/advisories/GHSA-5x85-g4vc-gq53:
| auth_profile.php?action=update_data stores the posted value without
| any validation for every key of $settings_user. The key
| preview_graphs_per_page is later used as the default of the graphs
| request variable on the graph preview page,
| validate_store_request_vars() applies defaults without running the
| configured filter, and the value is then concatenated into the LIMIT
| clause of an unprepared query in get_allowed_graphs(). Because the PDO
| connection keeps the driver defaults (emulated prepares, multi-
| statements enabled), the attacker can append arbitrary SQL statements.
|
| Required privilege: a logged-in user with realm 7 "View Graphs" and
| realm 20 "Update Profile" — both are part of the default "Normal
| User" permission set. No non-default configuration is needed. Verified
| outcome: the attacker grants themselves console realms (full
| administrator), from where Cacti's intended features (data input
| methods, plugins, path settings) give OS command execution.

Maintenance patch:
https://github.com/Cacti/cacti/pull/9013
https://github.com/Cacti/cacti/commit/8910e2aa42bf30d313bdce91c562cb377f3442eb

and additionally defense-in-depth patch:
https://github.com/Cacti/cacti/pull/9014
https://github.com/Cacti/cacti/commit/49fd19b5eb81c550225a6a3475c6f10384be37dc

Regards,
Salvatore
Technical Details
Message-ID: <O5DgR-fpsU-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Salvatore Bonaccorso <carnil@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1156090: cacti: GHSA-5x85-g4vc-gq53: Authenticated SQL injection (stacked queries) via unvalidated profile setting reaching the graph preview LIMIT clause — any "Normal User" can become administrator
Date: Tue, 01 Dec 2026 22:10:01 +0100
Message-ID: <O5DgR-fpsU-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Dec  1 21:09:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Salvatore Bonaccorso <carnil@debian.org>, 1156090@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: carnil@debian.org, team@security.debian.org, cacti@packages.debian.org
X-Debian-Pr-Message: report 1156090
X-Debian-Pr-Package: src:cacti
X-Debian-Pr-Keywords: security upstream
X-Debian-Pr-Source: cacti
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006407
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 30
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 01 Dec 2026 22:08:25 +0100
X-Original-Message-ID: <179615930502.414981.13212503942344397606.reportbug@eldamar.lan>