Mantis Bug Tracker
 

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008679mantisbtsecuritypublic2007-12-19 08:212008-01-27 17:47
Reporterseiji 
Assigned Tovboctor 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformPHP 5.2.5OSGentoo LinuxOS Version
Product Version1.1.0rc3 
Target Version1.1.0Fixed in Version1.1.0 
Summary0008679: XSS Vulnerability in view.php , Attached Files
DescriptionThere is a possibility that XSS occurs in "Attached Files" in view.php.

See attached file.
Steps To Reproduce1. create file on Linux.
   # echo "111" >> "<h1>XSS"
2. upload it.
3. go to View issue and click the issue.
Additional InformationThis is rare case.
TagsNo tags attached.
Attached Filespng file icon xss_before.png [^] (9,068 bytes) 2007-12-19 08:21


patch file icon file_api.php.patch [^] (586 bytes) 2007-12-19 08:24 [Show Content]

- Relationships

-  Notes
User avatar (0016494)
vboctor (administrator)
2007-12-21 04:19

The fix implement in Mantis 1.1.0 is to use the following line:

$t_file_display_name = string_display_line( file_get_display_name( $v_filename ) );

See the existing patch to see the context of the change.
User avatar (0016855)
giallu (developer)
2008-01-27 17:47

Security advisories:
http://secunia.com/advisories/28185/ [^]
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-6611 [^]

- Issue History
Date Modified Username Field Change
2007-12-19 08:21 seiji New Issue
2007-12-19 08:21 seiji File Added: xss_before.png
2007-12-19 08:24 seiji File Added: file_api.php.patch
2007-12-19 11:03 vboctor Target Version => 1.1.0rc4
2007-12-20 00:49 vboctor Status new => resolved
2007-12-20 00:49 vboctor Fixed in Version => 1.1.0rc4
2007-12-20 00:49 vboctor Resolution open => fixed
2007-12-20 00:49 vboctor Assigned To => vboctor
2007-12-20 01:35 vboctor Status resolved => closed
2007-12-21 04:19 vboctor Note Added: 0016494
2007-12-21 04:19 vboctor View Status private => public
2008-01-27 17:47 giallu Note Added: 0016855


MantisBT 1.2.0rc2 git live[^]
Copyright © 2000 - 2010 MantisBT Group
Time: 0.2120 seconds.
memory usage: 1,802 KB
Powered by Mantis Bugtracker