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: carn…@debian.org, Debian Security Team <te…@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