View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008679 | mantisbt | security | public | 2007-12-19 08:21 | 2012-10-05 15:06 |
Reporter | seiji | Assigned To | vboctor | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | PHP 5.2.5 | OS | Gentoo Linux | ||
Product Version | 1.1.0rc3 | ||||
Target Version | 1.1.0 | Fixed in Version | 1.1.0 | ||
Summary | 0008679: XSS Vulnerability in view.php , Attached Files | ||||
Description | There is a possibility that XSS occurs in "Attached Files" in view.php. See attached file. | ||||
Steps To Reproduce |
| ||||
Additional Information | This is rare case. | ||||
Tags | No tags attached. | ||||
Attached Files | file_api.php.patch (586 bytes)
Index: core/file_api.php =================================================================== --- core/file_api.php (リビジョン 4833) +++ core/file_api.php (作業コピー) @@ -163,7 +163,7 @@ $row = $t_attachment_rows[$i]; extract( $row, EXTR_PREFIX_ALL, 'v' ); - $t_file_display_name = file_get_display_name( $v_filename ); + $t_file_display_name = string_html_specialchars( file_get_display_name( $v_filename ) ); $t_filesize = number_format( $v_filesize ); $t_date_added = date( config_get( 'normal_date_format' ), db_unixtimestamp( $v_date_added ) ); | ||||
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. |
|
Security advisories: |
|