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

[security] CVE-2020-8440, Unrestricted file upload #10

Closed
gwen001 opened this issue Jan 19, 2020 · 2 comments
Closed

[security] CVE-2020-8440, Unrestricted file upload #10

gwen001 opened this issue Jan 19, 2020 · 2 comments

Comments

@gwen001
Copy link

gwen001 commented Jan 19, 2020

Description: controllers/page_apply.php in simplejobscript.com SJS <=1.66 is prone to unauthenticated Remote Code Execution by uploading a PHP script as a resume.

Environment:

Version: 1.64
OS: Ubuntu 16.10
Web server: Apache 2.4.18
PHP: 5.6.40
Database: MySQL 5.7.28
URL: /apply

Steps to Reproduce:
1/ Apply for a job and attach a PHP file as your resume
2/ Browse the upload directory http://local.simplejobscript.net/uploads/cvs/
3/ Run the PHP file

Additional information:
If you can't see the content of the upload directory (directory indexing is off), it can be hard to guess the final filename of your malicious resume because of the uniqid generated.
However, you can use one of the multiple SQL injection (CVE-2020-7229) then read the content of the table applicant or use one of the multiples IDOR available to have access to all applications of all companies.

PoC:
sjs_file_upload

@niteosoft
Copy link
Owner

fixed in the last commit d7c1b4b

@gwen001
Copy link
Author

gwen001 commented Jan 28, 2020

Perfect :)

@gwen001 gwen001 changed the title [security] Unrestricted file upload [security] CVE-2020-8440, Unrestricted file upload Jan 29, 2020
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