Skip to content

Multiple Arbitrary File Deletion vulnerabilities #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fuzzyap1 opened this issue Feb 17, 2022 · 1 comment
Closed

Multiple Arbitrary File Deletion vulnerabilities #486

fuzzyap1 opened this issue Feb 17, 2022 · 1 comment

Comments

@fuzzyap1
Copy link

Description of Vulnerability

Multiple Arbitrary File Deletion vulnerabilities in maxsite cms v 180 targeted towards web admin through admin/plugins/admin_page/all-files-update-ajax.php at the parameter dir and deletefile

affected source code:

at 15~34 in admin/plugins/admin_page/all-files-update-ajax.php
image

when the unlink() function is called and user input might affect portions of or the whole affected parameter, which represents the path of the file to remove, without sufficient sanitization. Exploiting the vulnerability allows an attacker to delete any file in the web root (along with any other file on the server that the PHP process user has the proper permissions to delete).

Proof of concept (Poc)

  1. in http://cms108.com/admin/page_edit/3 select file to delete and Send the request directly through burp
    image-20220216112514661
    image-20220216111841180

  2. .You can traverse the directory to delete any file
    image-20220216112230772

  3. (Poc)
    dir=../&deletefile=del-test.php

Additional

The same problem occurs in /cms-108/application/maxsite/admin/plugins/admin_files/admin.php at the parameter f_check_files

@maxsite
Copy link
Owner

maxsite commented Feb 17, 2022

Thanks, I'll fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants