Skip to content

Arbitrary file upload vulnerability #1

Closed
@TXPH

Description

@TXPH

RapidCMS exists arbitrary file upload vulnerability

An arbitrary file upload vulnerability in /admin/upload.php allows attackers to getshell
Firstly, we can register an admin account [username:admin / password:admin] .Then enter the website backend and click the article editing button.
截屏2023-07-10 17 16 52
There is an image upload function on this interface. Hackers can upload a normal image first, and then use BurpSuite to intercept it.Then modify the request content: change the file suffix name to PHP and the file content to webshell. Finally, click the send button to upload the malicious file.
924741d1bf138d1347b6259fd6b408aa
Accessing webshell to getshell /upload/upload_c1e14b5b6314466a34fc7fc93767a3ca.php
截屏2023-07-10 17 25 59
Fix suggestion: Set a whitelist for file suffixes uploaded by users

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions