Skip to content

Security: defense-in-depth audit findings (1 items) #13

Closed as not planned
Closed as not planned

Description

@somethingwithproof

Defense-in-Depth Audit

An automated security audit identified 1 defense-in-depth opportunities in plugin_quicktree.

Breakdown

Path(1)

Recommended fixes

  • SQLi: Convert string-concatenated SQL to db_execute_prepared() / db_fetch_*_prepared()
  • XSS: Wrap get_request_var() in HTML contexts with html_escape_request_var()
  • CMD: Verify exec()/shell_exec() args use cacti_escapeshellarg()
  • Path: Add realpath() + prefix validation for include/require with variable paths
  • Deser: Add array('allowed_classes' => false) to unserialize() calls
  • CSRF: Verify forms integrate with Cacti CSRF framework

All recommended changes are PHP 7.0+ compatible.

Related PR: #12

Activity

  1. somethingwithproof commented on Apr 9, 2026

    @somethingwithproof
    MemberAuthor

    Fix PR open: #12

  2. somethingwithproof commented on Nov 11, 2026

    @somethingwithproof
    MemberAuthor

    The flagged variable include no longer exists (setup.php and quicktree.php use fixed paths), and QuickTree has since been hardened by #20, #42, #43 and #47. Closing as obsolete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions