Hack Forums
Stuck to exploitation step in a pentest - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: Stuck to exploitation step in a pentest (/showthread.php?tid=6232543)



Stuck to exploitation step in a pentest - Ishikawa Sensei - Feb 5, 2023

Hi,

I'm currently doing a pentest on a website (I have the authorizations). I've already find a vulnerability, it's a malicious image upload. I can simply upload a script file by changing the extension (ex: script.js => script.JS.png).
However, I'm stuck to the exploitation step.
I don't know how to execute my JavaScript code embed in the malicious image. My goal is to execute a python script thanks to the JS code or to get a shell.
Can you help me with this, please ?

Technical stack :
- React 16.8 on front-end
- .NET 6 on back-end
- Ubuntu 18.04
- NGINX 1.20