Skip to content

Possible XSS vulnerability #3651

Closed
Closed
@enferas

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 

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions