Closed
Description
Hello,
I would like to report for possible XSS vulnerability.
The source in this file https://github.com/splitbrain/dokuwiki/blob/master/vendor/openpsa/universalfeedcreator/lib/Creator/HTMLCreator.php Line 157 in function _generateFilename.
While the sink in this https://github.com/splitbrain/dokuwiki/blob/master/feed.php line 103.
I tried to test the pathinfo function in PHP. And I found it is possible to bypass this function with this example.
<?php
$path_parts = pathinfo('/path/<img src="aaa.img" onerror=alert(document.cookie);>');
echo $path_parts['basename'], "\n"; // XSS