Skip to content

fix(security): anchor thumbnails filter and parameterize header-node query#7176

Merged
TheWitness merged 1 commit into
Cacti:1.2.xfrom
somethingwithproof:fix/1.2.x-input-validation
Jun 3, 2026
Merged

fix(security): anchor thumbnails filter and parameterize header-node query#7176
TheWitness merged 1 commit into
Cacti:1.2.xfrom
somethingwithproof:fix/1.2.x-input-validation

Conversation

@somethingwithproof
Copy link
Copy Markdown
Contributor

@somethingwithproof somethingwithproof commented May 29, 2026

Two small hardening fixes for 1.2.x:

  • graph_view.php: anchor the thumbnails FILTER_VALIDATE_REGEXP to ^(true|false)$ (previously unanchored).
  • lib/api_automation.php: create_all_header_nodes() uses a ? placeholder for the item id it already binds via db_fetch_cell_prepared() (was string-concatenated).

Base: 1.2.x. Rebased onto the current 1.2.x tip so the diff is limited to these two files.

…query

graph_view anchors the thumbnails FILTER_VALIDATE_REGEXP to ^(true|false)$, and
create_all_header_nodes() uses a ? placeholder for the item id it already binds
via db_fetch_cell_prepared().

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof somethingwithproof changed the title fix(security): tighten URI and redirect input validation fix(security): anchor thumbnails filter and parameterize header-node query May 29, 2026
@somethingwithproof somethingwithproof force-pushed the fix/1.2.x-input-validation branch from bda3284 to f59357e Compare May 29, 2026 19:51
@TheWitness TheWitness merged commit 669d4d6 into Cacti:1.2.x Jun 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants