Bug 1317549 (CVE-2016-3172)

Summary: CVE-2016-3172 cacti: SQL injection vulnerability in /cacti/tree.php
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: gwync
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:49:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1317550    
Bug Blocks:    

Description Adam Mariš 2016-03-14 14:11:10 UTC
An SQL injection vulnerability was found in cacti-0.8.8g.

Vulnerable code (/cacti/tree.php):

    switch ($current_type) {
    case TREE_ITEM_TYPE_HEADER:
        $i = 0;
        /* it's nice to default to the parent sorting style for new items */
        if (empty($_GET["id"])) {
            $default_sorting_type = db_fetch_cell("select
sort_children_type from graph_tree_items where id=" . $_GET["parent_id"]);
        }else{
            $default_sorting_type = TREE_ORDERING_NONE;
        }

CVE request (includes reproducer):

http://seclists.org/oss-sec/2016/q1/590

Comment 1 Adam Mariš 2016-03-14 14:11:33 UTC
Created cacti tracking bugs for this issue:

Affects: epel-all [bug 1317550]

Comment 2 Andrej Nemec 2016-03-16 09:22:20 UTC
CVE assignment:

http://seclists.org/oss-sec/2016/q1/651

Comment 3 Product Security DevOps Team 2019-06-08 02:49:43 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.