mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3949 - Fix XSS vulnerability on file attribute
This commit is contained in:
@@ -31,6 +31,11 @@ class DownloadPage extends AjaxPage
|
||||
header($s_header);
|
||||
}
|
||||
|
||||
echo $this->sContent;
|
||||
if (($this->sContentType == 'text/html') && ($this->sContentDisposition == 'inline')) {
|
||||
// inline content != attachment && html => filter all scripts for malicious XSS scripts
|
||||
echo self::FilterXSS($this->sContent);
|
||||
} else {
|
||||
echo $this->sContent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user