Bug 1224240 (CVE-2024-31458)

Summary: VUL-0: CVE-2024-31458: cacti: SQL Injection vulnerability when using form templates
Product: [openSUSE] openSUSE Distribution Reporter: Andreas Stieger <Andreas.Stieger>
Component: SecurityAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: Andreas.Stieger, camila.matos
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/405733/
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Stieger 2024-05-14 18:43:34 UTC
Fixed in 1.2.27

Some of the data stored in automation_tree_rules.php is not thoroughly checked and is used to concatenate the SQL statement in
create_all_header_nodes() function from lib/api_automation.php , finally resulting in SQL injection.

https://github.com/cacti/cacti/security/advisories/GHSA-gj3f-p326-gh8r
Comment 1 OBSbugzilla Bot 2024-05-14 19:25:13 UTC
This is an autogenerated message for OBS integration:
This bug (1224240) was mentioned in
https://build.opensuse.org/request/show/1174071 Factory / cacti
https://build.opensuse.org/request/show/1174072 Backports:SLE-12+Backports:SLE-15-SP5 / cacti+cacti-spine
Comment 2 OBSbugzilla Bot 2024-05-14 20:55:12 UTC
This is an autogenerated message for OBS integration:
This bug (1224240) was mentioned in
https://build.opensuse.org/request/show/1174083 Backports:SLE-12+Backports:SLE-15-SP5 / cacti+cacti-spine
Comment 3 Andreas Stieger 2024-05-15 19:31:30 UTC
done