vendor:
PlaySMS
by:
Touhid M.Shaikh
7,5
CVSS
HIGH
Code Execution and Unrestricted File Upload
434
CWE
Product Name: PlaySMS
Affected Version From: 1.4
Affected Version To: 1.4
Patch Exists: YES
Related CWE: N/A
CPE: a:playsms:playsms:1.4
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2017
PlaySMS 1.4 Code Execution using $filename and Unrestricted File Upload in sendfromfile.php
Any registered user can upload any file because of not proper Validation of file in sendfromfile.php. Now We know sendfromfile.php accept any file extension and just read content not stored in server. But there is bug when user upload example: mybackdoor.php server accept happily but not store in any folder so our shell is useless. But if User change the file name to "mybackdoor.php" to "<?php system('uname -a'); dia();?>.php" den server check for file and set some perameter $filename="<?php system('uname -a'); dia();?>.php" , U can see code below and display $filename on page.
Mitigation:
Upgrade to latest version of PlaySMS