Skip to content
CVE-2026-132142 CrowdStrike LogScale · LogScale

Detect DrayTek Vigor2960 dataflowstatus Stack Buffer Overflow (CVE-2026-132142) in CrowdStrike LogScale

Detects exploitation attempts against a stack-based buffer overflow in the dataflowstatus function of /cgi-bin/mainfunction.cgi on DrayTek Vigor2960 routers running firmware up to 1.5.1.6. The flaw (CWE-119/CWE-121) is triggered by an authenticated request that supplies an overlong value to the vulnerable 'option' parameter handled by dataflowstatus, corrupting the CGI process stack. Confirmed impact is memory corruption, return-address overwrite, and a crash of the CGI process. This detection looks for HTTP(S) requests to mainfunction.cgi referencing the dataflowstatus action with abnormally long parameter values, as well as device-side crash/restart indicators of the CGI handler.

Based on yikesoftware DrayTek Vigor2960 Security Analysis, DRV2960-0024 authenticated dataflowstatus option stack overflow

MITRE ATT&CK

Tactic
Initial Access Impact

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
// df00tech DF00-423e1649c0 · https://df00tech.com/detections/CVE-2026-132142 · licence: https://df00tech.com/detections/licence
#event_simpleName=NetworkConnect* OR #repo="proxy"
| url=/.*\/cgi-bin\/mainfunction\.cgi.*/i
| url=/.*(dataflowstatus|option=).*/i
| length("url") as url_len
| test(url_len > 512) OR url=/option=[^&]{200,}/
| groupBy([src_ip, dest_ip, url])
high severity medium confidence

CrowdStrike CQL (LogScale) query for long DrayTek mainfunction.cgi dataflowstatus/option requests in proxy/network telemetry.

Data Sources

Web ProxyNetwork

Required Tables

proxyNetworkConnect

False Positives & Tuning

  • Legitimate long administrative requests
  • Authorized penetration testing
  • Log normalization inflating URL length

Other platforms for CVE-2026-132142


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Overlong option parameter to dataflowstatus (lab)

    Expected signal: Proxy/firewall HTTP log entry with a >2000 character URL to mainfunction.cgi referencing dataflowstatus and option.

  2. Test 2 POST body overflow variant (lab)

    Expected signal: HTTP POST to mainfunction.cgi with a large body containing dataflowstatus and an overlong option parameter.

  3. Test 3 Benign dataflowstatus request (control)

    Expected signal: Short, normal-length HTTP request to mainfunction.cgi dataflowstatus.


Response Playbook

Triage

  1. Confirm the destination IP is a DrayTek Vigor2960 and check its firmware version; versions up to 1.5.1.6 are vulnerable, 1.5.1.7 is patched.
  2. Extract the full request to /cgi-bin/mainfunction.cgi and measure the length of the 'option' parameter and other dataflowstatus arguments to confirm an overlong value beyond normal use.
  3. Determine whether the source authenticated to the device first, since the flaw is authenticated, review session/login logs correlated to the source IP.
  4. Assess whether the request produced a device crash, reboot, or CGI handler restart immediately afterward.

Containment

  1. Block the offending source IP at the perimeter and restrict management-interface access to trusted admin networks/VPN only.
  2. Upgrade affected Vigor2960 devices to firmware 1.5.1.7 or later, or disable WAN-side access to the web management interface until patched.

Evidence Collection

  1. Preserve proxy/firewall HTTP logs containing the full malicious URL and payload for the dataflowstatus request.
  2. Capture the device's syslog/crash logs and any core dumps showing CGI process memory corruption or restart.

Escalation Criteria

  • !Escalate to incident response if the device crashed/rebooted following the request or if post-exploitation command execution indicators appear.
  • !Escalate if the exploiting source had valid administrative credentials, indicating credential compromise in addition to the vulnerability.

Investigation Guide

Forensic Artifacts

  • >Web server/CGI access logs on the device referencing mainfunction.cgi dataflowstatus
  • >Device syslog entries showing CGI process crash, watchdog reboot, or stack smashing detection
  • >Perimeter proxy/firewall records of the overlong request and source IP/session

Tuning Guidance

Baseline the normal maximum length of legitimate option/dataflowstatus parameters in your environment and adjust the 512/200-character thresholds accordingly. Whitelist known admin workstations and authorized scanner IPs. If you only have NetFlow (no URL visibility), pivot to detecting CGI process crashes/reboots on the device via syslog instead.


Hunting Queries

Surfaces sources sending unusually long dataflowstatus requests to DrayTek devices for retrospective hunting.

Hunting — KQL
kql
// df00tech DF00-423e1649c0 · https://df00tech.com/detections/CVE-2026-132142 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "/cgi-bin/mainfunction.cgi" and RequestURL has "dataflowstatus" | extend L=strlen(RequestURL) | summarize max(L), count() by SourceIP | where max_L > 400
Hunting — SPL
spl
``` df00tech DF00-423e1649c0 · https://df00tech.com/detections/CVE-2026-132142 · licence: https://df00tech.com/detections/licence ```
index=proxy uri_path="*/cgi-bin/mainfunction.cgi*" | eval l=len(coalesce(url,uri_query)) | stats max(l) as maxlen count by src_ip | where maxlen>400

Atomic Red Team Tests

Test 1 Overlong option parameter to dataflowstatus (lab)
linux

Sends an authenticated request with a very long option value to the dataflowstatus function to trigger the stack overflow in a lab device.

Command

bash
curl -k -s -b "sessionid=LAB_SESSION" "https://vigor2960.lab/cgi-bin/mainfunction.cgi?action=dataflowstatus&option=$(python3 -c 'print("A"*2000)')"

Cleanup

bash
echo 'No cleanup required; power-cycle or reboot the lab device if it crashed.'

Expected Telemetry

Proxy/firewall HTTP log entry with a >2000 character URL to mainfunction.cgi referencing dataflowstatus and option.

Expected Detection

KQL/SPL rules fire on the overlong option parameter exceeding the length threshold.

Test 2 POST body overflow variant (lab)
linux

Delivers the overlong option value via POST body to test detection coverage of non-query-string delivery.

Command

bash
curl -k -s -b "sessionid=LAB_SESSION" -X POST --data "action=dataflowstatus&option=$(python3 -c 'print("B"*2000)')" "https://vigor2960.lab/cgi-bin/mainfunction.cgi"

Cleanup

bash
echo 'Reboot the lab Vigor2960 if the CGI handler crashed.'

Expected Telemetry

HTTP POST to mainfunction.cgi with a large body containing dataflowstatus and an overlong option parameter.

Expected Detection

Detection flags the request if POST body/parameter length is logged; otherwise confirms a body-delivery visibility gap for tuning.

Test 3 Benign dataflowstatus request (control)
linux

Sends a normal, short dataflowstatus request to verify the rule does not fire on legitimate traffic.

Command

bash
curl -k -s -b "sessionid=LAB_SESSION" "https://vigor2960.lab/cgi-bin/mainfunction.cgi?action=dataflowstatus&option=all"

Cleanup

bash
echo 'No cleanup required.'

Expected Telemetry

Short, normal-length HTTP request to mainfunction.cgi dataflowstatus.

Expected Detection

No alert should be generated, confirming the length threshold suppresses benign use.

Related Detections