Bofra — 1 vulnerability check
noctis ships 1 vulnerability check for Bofra, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Bofra Worm Infection (IE IFRAME Exploit Served on /reactor)
| CVE | CVE-2004-1050 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | exposure — Exposure |
| Services | http, https, cert-initiator |
| Detection | tcp_connect, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/bofra/CVE-2004-1050.yaml |
Requests /reactor and checks whether the host serves the Internet Explorer IFRAME SRC/NAME buffer overflow exploit page (`<IFRAME SRC=file://…`, ASCII or UTF-16LE) that the Bofra worm (W32.Bofra, MyDoom.AG/AH) hosts on infected machines to infect visitors. A hit means the machine is very likely compromised and is actively spreading the worm.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /reactor HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
page.summaryfor^BOFRA_IFRAME_EXPLOIT <IFRAME SRC=file://→ finding QoD 75: GET /reactor on …:… returned the Bofra worm's Internet Explorer IFRAME overflow exploit page (<IFRAME SRC=file://..., … encoding): the host…
References:
Feed source — tests/vulnerabilities/bofra/CVE-2004-1050.yaml
# Bofra worm (W32.Bofra / MyDoom.AG/AH) infection — IE IFRAME overflow
# exploit served on /reactor (CVE-2004-1050).
#
# Ported from OpenVAS/Greenbone NASL pre2008/bofra_detect.nasl
# (OID 1.3.6.1.4.1.25623.1.0.15746, GPL-2.0-only).
#
# Bofra spreads by mailing links to the infected machine itself: the worm runs
# a small HTTP server (port 1639 in the samples seen) whose /reactor page holds
# the Internet Explorer IFRAME SRC/NAME buffer overflow (CVE-2004-1050) that
# infects every visitor. A host answering /reactor with that page is serving
# live exploit code — it is very likely compromised.
#
# Same request and markers as the NASL: GET /reactor, then `<IFRAME SRC=file://`
# either in plain ASCII or UTF-16LE (the NASL's hex marker
# 3c0049004600520041004d0045002000…). Matching the exploit page the worm
# actually serves IS the proof — read-only, nothing is sent to the host but
# the GET. No stronger benign proof exists: the payload targets the visiting
# browser, not the server.
#
# Better than the NASL:
# - the NASL only probes the hardcoded port 1639 ("YMMV"); here every port
# that the scan reports as http/https is probed, so variants or NAT/port
# forwarding on another port are not missed. Port 1639 itself is also
# covered when discovery labels it with its IANA name `cert-initiator`
# (no -sV, or a header-less reply nmap cannot fingerprint as http);
# - HTTPS is covered (auto-TLS of tcp_connect);
# - like the NASL, the whole reply is searched, so a header-less reply or
# LF-only headers from the worm's minimal HTTP server still match;
# - the ASCII marker tolerates attribute quoting/spacing/case variations
# (`<iframe src="file://…`) that the NASL's literal egrep misses;
# - the UTF-16LE marker is matched on the raw bytes, with or without a BOM.
uid: fde8d83f-d08c-4e2f-a8d3-579b49592246
name: "CVE-2004-1050 — Bofra Worm Infection (IE IFRAME Exploit Served on /reactor)"
description: |
Requests /reactor and checks whether the host serves the Internet Explorer
IFRAME SRC/NAME buffer overflow exploit page (`<IFRAME SRC=file://…`, ASCII or
UTF-16LE) that the Bofra worm (W32.Bofra, MyDoom.AG/AH) hosts on infected
machines to infect visitors. A hit means the machine is very likely
compromised and is actively spreading the worm.
cves: [CVE-2004-1050]
cvss: 10.0
severity: critical
category: exposure
confidence_base: 0.30
tags: [bofra, mydoom, worm, malware, backdoor, internet-explorer, iframe, openvas]
services: [http, https, cert-initiator]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2004-1050"
- "https://www.kb.cert.org/vuls/id/842160"
- "OpenVAS/Greenbone NASL pre2008/bofra_detect.nasl (OID 1.3.6.1.4.1.25623.1.0.15746, GPL-2.0-only)"
steps:
# 1 — the NASL request, verbatim HTTP/1.0 (TLS auto from the scheme).
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET /reactor HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: resp
# 2 — look for the exploit marker in the whole reply (as the NASL): ASCII `<IFRAME SRC=file://`
# (case-insensitive, optional quote/spaces) or its UTF-16LE form. Only a
# fixed summary leaves this step (the page is several KB of overflow
# filler), never the raw reply.
- id: parse
action: script
code: |
let out = #{ hit: false, enc: "", summary: "" };
if type_of(resp.banner) == "string" {
let body = resp.banner;
if ereg("<iframe\\s+src\\s*=\\s*[\"']?file://", body, true) {
out.hit = true;
out.enc = "ASCII";
} else if ereg("<\\x00i\\x00f\\x00r\\x00a\\x00m\\x00e\\x00 \\x00s\\x00r\\x00c\\x00=\\x00f\\x00i\\x00l\\x00e\\x00:\\x00/\\x00/\\x00", body, true) {
out.hit = true;
out.enc = "UTF-16LE";
}
if out.hit {
out.summary = "BOFRA_IFRAME_EXPLOIT <IFRAME SRC=file:// (" + out.enc + ")";
}
}
out
store_as: page
# 3 — report on the fixed summary.
- id: confirm
action: match
condition: "page.hit == true"
source: page.summary
pattern: '^BOFRA_IFRAME_EXPLOIT <IFRAME SRC=file://'
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "GET /reactor on {{target_host}}:{{port}} returned the Bofra worm's Internet Explorer IFRAME overflow exploit page (<IFRAME SRC=file://..., {{page.enc}} encoding): the host is serving live exploit code and is very likely infected"
stop: true