8000 Temporary file can overwrite and delete arbitrary files · Issue #59 · akate/dokuwiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Temporary file can overwrite and delete arbitrary files #59
Open
@michitux

Description

@michitux

In the media_upload_xhr()-function there is no check if the $id is a safe filename. For example if you enter "../../../conf/local.php" as id in the upload form, the configuration file is first replaced by the uploaded file and then deleted. This happens before any security check apart from the security token is done.

There can also be more problems like characters that aren't allowed in a filename so my recommendation is to simply use the md5 sum of the id as filename.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0