8000 There is a file upload vulnerability that can execute arbitrary code · Issue #10 · hisiphp/hisiphp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
There is a file upload vulnerability that can execute arbitrary code #10
Open
@Aview17

Description

@Aview17

In hisiphpv2.0.11, after the administrator logs in, the installation package (.zip file) can be uploaded at the system -> local plug-in -> import plug-in

image

The code for uploading the logic is located in the import() function of the "app\system\admin\Plugins" class, where the zip file is extracted before being safely processed.

Special packets can be constructed in
$files = Dir::getList($decompath. '/ Upload/Plugins /');
Throws an exception to bypass the security check

Package shell.php as a zip file (make sure there are no/Upload /plugins/ under the path)

Poc as follows

image

The response contains the path

image

You can see that shell.php is uploaded

image

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