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

A Arbitrary File Upload Vulnerability in wcms/wex/finder/action.php #2

Open
Ryan0lb opened this issue Apr 3, 2019 · 2 comments
Open

Comments

@Ryan0lb
Copy link

Ryan0lb commented Apr 3, 2019

A Arbitrary File Upload Vulnerability in wcms/wex/finder/action.php

Affected software:WCMS V0.3.2
Type of vulnerability: Arbitrary File Upload
Discovered by: Yu Yang

Use this upload feature in the developer/finder:
image
and we can upload arbitrary file in the web server,it allows attackers upload malicious code
image
POC(2.php):
<?php @eval($_POST[c]);?>
image
code:
image
image
i hope you can fix it

@vedees
Copy link
Owner

vedees commented Apr 29, 2019

working on it!

@cryptoprof
Copy link

Hello.
I have maid some changes to project structure. Now there have public folder, where would be user files. In that folder I have added .htaccess file that prevent execution of php code in public folder. Maybe this is not elegant fix, but quick and work good. I'm only start this fork, so I would fix next issues, when I have free time.
https://github.com/cryptoprof/wcms/tree/feature/securityFix

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

3 participants