Bug 459105 (CVE-2010-2544)

Summary: CVE-2010-2544 cacti: XSS in utilities.php log file viewer search pattern
Product: [Other] Security Response Reporter: Marc Schoenefeld <mschoene>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: VERIFIED --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ocs2, plautrba, srevivo, vdanen
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: 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: 459106    
Bug Blocks:    

Description Marc Schoenefeld 2008-08-14 14:01:38 UTC
Summary:

Cross Site Scripting in parameter 'filter'

to reproduce: 

/cacti/utilities.php?tail_lines=50&message_type=-1&go.x=10&go.y=9&refresh=20&reverse=1&filter=%22%3E%3Cscript%3Ealert%28document.cookie%29%3C%2Fscript%3E&page=1&action=view_logfile

Comment 2 OCS Support 2008-09-22 17:52:32 UTC
Fix provided in cacti-0.8.7b-1.1.src.rpm sent to Nils

Comment 3 Vincent Danen 2010-04-28 19:54:35 UTC
This isn't fixed in the current 0.8.7e-3.fc12, which means this isn't fixed in HPC or upstream.  Reproduced with the above-mentioned reproducer.

Comment 4 Tomas Hoger 2010-06-29 09:15:23 UTC
De-obfuscated reproducer:

/utilities.php?refresh=200&filter="><script>alert(document.cookie)</script>&action=view_logfile

Confirmed with 0.8.7f-1.

Comment 6 Tomas Hoger 2010-06-30 12:42:04 UTC
Fixed upstream now:
http://svn.cacti.net/viewvc/cacti/branches/0.8.7/utilities.php?r1=6025&r2=6024&pathrev=6025

Part of larger commit fixing other XSS issues:
http://svn.cacti.net/viewvc?view=rev&revision=6025

Comment 7 Tomas Hoger 2010-07-12 09:23:49 UTC
0.8.7g released:

http://cacti.net/release_notes_0_8_7g.php

Comment 9 errata-xmlrpc 2010-08-20 02:42:38 UTC
This issue has been addressed in following products:

  Red Hat HPC Solution for RHEL 5

Via RHSA-2010:0635 https://rhn.redhat.com/errata/RHSA-2010-0635.html