PoC Monitor
← All CVEs
CVE-2018-13382published 4 Jun 2019 20:33 UTCData: JSON · API

Fortinet FortiOS, FortiProxy

Fortinet FortiOS and FortiProxy Improper Authorization

Edge device · Firewall / VPNknown edge product: Fortinet Fortinet FortiOS, FortiProxy Fortinet FortiOS and (high confidence)

An Improper Authorization vulnerability in Fortinet FortiOS 6.0.0 to 6.0.4, 5.6.0 to 5.6.8 and 5.4.1 to 5.4.10 and FortiProxy 2.0.0, 1.2.0 to 1.2.8, 1.1.0 to 1.1.6, 1.0.0 to 1.0.7 under SSL VPN web portal allows an unauthenticated attacker to modify the password of an SSL VPN web portal user via specially crafted HTTP requests

First public PoC 7 daysafter publication · 11 Jun 2019
Public PoCs54 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.1critical · scored by CNA · CWE-863
CISA KEV 10 Jan 20222.6 years after publication · ransomware use known

Timeline

Days relative to CVE publication
t=0+180+360+540+720+900CVE published4 Jun 2019 · t = 0First public PoC11 Jun 2019 · t+7dAdded to CISA KEV10 Jan 2022 · t+2.6y

First public PoC 7 days after publication; added to CISA KEV 2.6 years after publication. First PoC: dhn/exploits (created 11 Jun 2019, found by us: backfilled).

PoC repositories

Found on GitHub.

4 PoCs

PoCs 4
RepositoryCreatedStarsAssessment
dhn/exploits 11 Jun 2019 +7 d 56 PoC via PoC Index
milo2012/CVE-2018-13382 11 Aug 2019 +68 d 146 PoC
tumikoto/Exploit-FortinetMagicBackdoor 28 Apr 2021 +1.9 y 1 PoC via PoC Index
cojoben/CVE-2018-13382 26 Feb 2025 +5.7 y 0 PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
Exploit-DBFortinet FortiOS 6.0.4 - Unauthenticated SSL VPN User Password Modification19 Nov 202014 Nov 2026

PoC characteristics

What to hunt for in your logs · from 4 PoC repos

GET /remote/login

Query
lang=en
Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Upgrade-Insecure-Requests: 1
Seen in
2 repos: cojoben/CVE-2018-13382, milo2012/CVE-2018-13382
Evidence
cojoben/CVE-2018-13382/CVE-2018-13382.py:34 milo2012/CVE-2018-13382/CVE-2018-13382.py:25

POST /remote/login

Query
lang=en
Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Upgrade-Insecure-Requests: 1
Body markers
ajax=1 username= realm= credential= magic=4tinet2095866 reqid=0 credential2= in application/x-www-form-urlencoded
Seen in
2 repos: cojoben/CVE-2018-13382, milo2012/CVE-2018-13382
Evidence
cojoben/CVE-2018-13382/CVE-2018-13382.py:63 cojoben/CVE-2018-13382/CVE-2018-13382.py:86 milo2012/CVE-2018-13382/CVE-2018-13382.py:38 milo2012/CVE-2018-13382/CVE-2018-13382.py:48

POST /remote/logincheck

Body markers
ajax= username= realm= magic=4tinet2095866 reqid= credential= in application/x-www-form-urlencoded
Ports
8080
Seen in
1 repo: dhn/exploits
Evidence
dhn/exploits/CVE-2018-13382/exploit.py:28

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /remote/login
(?i)^/remote/login\?(?:.*&)?lang=en
POST /remote/login
(?i)^/remote/login\?(?:.*&)?lang=en
POST /remote/logincheck
(?i)^/remote/logincheck(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /remote/login
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-13382 Fortinet Fortinet FortiOS, FortiProxy exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/remote/login"; http.uri; content:"lang=en"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,*/*|3b|q=0.8"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2018-13382; classtype:web-application-attack; sid:9760198; rev:1;)
POST /remote/login
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-13382 Fortinet Fortinet FortiOS, FortiProxy exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/remote/login"; http.uri; content:"lang=en"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,*/*|3b|q=0.8"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.request_body; content:"ajax=1"; http.request_body; content:"username="; http.request_body; content:"realm="; http.request_body; content:"credential="; http.request_body; content:"magic=4tinet2095866"; http.request_body; content:"reqid=0"; http.request_body; content:"credential2="; reference:url,poc.griffinguard.io/cve/CVE-2018-13382; classtype:web-application-attack; sid:9026038; rev:1;)
POST /remote/logincheck
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2018-13382 Fortinet Fortinet FortiOS, FortiProxy exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/remote/logincheck"; http.request_body; content:"ajax="; http.request_body; content:"username="; http.request_body; content:"realm="; http.request_body; content:"magic=4tinet2095866"; http.request_body; content:"reqid="; http.request_body; content:"credential="; reference:url,poc.griffinguard.io/cve/CVE-2018-13382; classtype:web-application-attack; sid:9040342; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /remote/login
title: Fortinet Fortinet FortiOS, FortiProxy exploit attempt (CVE-2018-13382)
id: gg-pocmon-cve-2018-13382-9760198
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-13382. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2018-13382
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/remote/login'
    cs-uri-query|contains|all:
      - 'lang=en'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2018.13382
POST /remote/login
title: Fortinet Fortinet FortiOS, FortiProxy exploit attempt (CVE-2018-13382)
id: gg-pocmon-cve-2018-13382-9026038
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-13382. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2018-13382
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/remote/login'
    cs-uri-query|contains|all:
      - 'lang=en'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2018.13382
POST /remote/logincheck
title: Fortinet Fortinet FortiOS, FortiProxy exploit attempt (CVE-2018-13382)
id: gg-pocmon-cve-2018-13382-9040342
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-13382. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2018-13382
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/remote/logincheck'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2018.13382