cve.bz

CAPEC-303

TCP Xmas Scan

Low severityDetailed pattern

An adversary uses a TCP XMAS scan to determine if ports are closed on the target machine. This scan type is accomplished by sending TCP segments with all possible flags set in the packet header, generating packets that are illegal based on RFC 793. The RFC 793 expected behavior is that any TCP segment with an out-of-state Flag sent to an open port is discarded, whereas segments with out-of-state flags sent to closed ports should be handled with a RST in response. This behavior should allow an attacker to scan for closed ports by sending certain types of rule-breaking packets (out of sync or disallowed by the TCB) and detect closed ports via RST packets.

On this page

In addition to its relative speed when compared with other types of scans, its major advantage is its ability to scan through stateless firewall or ACL filters. Such filters are configured to block access to ports usually by preventing SYN packets, thus stopping any attempt to 'build' a connection. XMAS packets, like out-of-state FIN or ACK packets, tend to pass through such devices undetected. Because open ports are inferred via no responses being generated, one cannot distinguish an open port from a filtered port without further analysis. For instance, XMAS scanning a system protected by a stateful firewall may indicate all ports being open. Because of their obvious rule-breaking nature, XMAS scans are flagged by almost all intrusion prevention or intrusion detection systems.

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-303: TCP Xmas Scan: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/303.html and https://cve.bz/cve/capec/303?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.

How the attack unfolds

  1. Experiment

    They probe what they found.

    1. An adversary sends TCP packets with all flags set but not associated with an existing connection to target ports.

    2. An adversary uses the response from the target to determine the port's state. If no response is received the port is open. If a RST packet is received then the port is closed.

Prerequisites

  • The adversary needs logical access to the target network. XMAS scanning requires the use of raw sockets, and thus cannot be performed from some Windows systems (Windows XP SP 2, for example). On Unix and Linux, raw socket manipulations require root privileges.

Resources required

  • This attack can be carried out with a network mapper or scanner, or via raw socket programming in a scripting language. Packet injection tools are also useful for this purpose. Depending upon the method used it may be necessary to sniff the network in order to see the response.

Consequences

What a successful attack can lead to
ImpactAffectsNote
OtherConfidentiality
Bypass Protection Mechanism, Hide ActivitiesConfidentiality, Access Control, Authorization
Unreliable ExecutionAvailability

Mitigations

  • Employ a robust network defensive posture that includes a managed IDS/IPS.

Weaknesses it exploits

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

Recent CVEs with these weaknesses

  1. 3.3CVE-2026-118999

    Permission control vulnerability in the theme setting module. Impact: Successful exploitation of this vulnerability may affect service confidentiality.

  2. 5.5CVE-2026-140052

    A vulnerability was identified in g-mr SmartCall up to 1.0.9. This vulnerability affects the function token of the file smart-maxkb/src/main/java/com/qidiangk/smart/maxkb/controller/TokenController.java of the component smart-maxkb. Such m…

  3. 6.2CVE-2026-119008

    Vulnerability of improper data management in the location service module. Impact: Successful exploitation of this vulnerability may affect service confidentiality.

  4. 5.5CVE-2026-139893

    A vulnerability has been found in 0xERR0R blocky up to 0.35.0. Impacted is the function configureDebugHandler of the file server/server_endpoints.go. Such manipulation leads to information disclosure. The attack may be performed from remot…

  5. 6.9CVE-2026-140122

    PDF & Print by BestWebSoft before 2.4.8 contains an information disclosure vulnerability in pdfprnt_print() that allows unauthenticated attackers to view non-public posts by injecting WP_Query arguments. Attackers can send print=print-cust…

  6. 6.9CVE-2026-140098

    Vite is a frontend tooling framework for JavaScript. In 8.4.0-beta.1, a network-exposed development server can register a request-chosen file outside server.fs.allow in config.environments.client.safeModulePaths when processing ?worker&imp…

  7. 6.7CVE-2026-63271

    LibreOffice presentations can link to sounds, and SVG images and XHTML documents can link to images and objects. A crafted document could link to a local file in one of these ways and have that file's content put into the document, for exa…

  8. 6.7CVE-2026-126796

    A LibreOffice Writer document can contain its own database. When the document was opened, that database was registered in the user's settings under a name the document chose, replacing any database the user had registered under that name. …

The newest records naming one of them. Each weakness's page lists them all.

Part of

MITRE's words, unchanged: CAPEC-303 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.