cve.bz

CAPEC-81

Web Server Logs Tampering

High severityMedium likelihoodDetailed pattern

Web Logs Tampering attacks involve an attacker injecting, deleting or otherwise tampering with the contents of web logs typically for the purposes of masking other malicious behavior. Additionally, writing malicious data to log files may target jobs, filters, reports, and other agents that process the logs in an asynchronous attack pattern. This pattern of attack is similar to "Log Injection-Tampering-Forging" except that in this case, the attack is targeting the logs of the web server and not the application.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-81: Web Server Logs Tampering: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/81.html and https://cve.bz/cve/capec/81?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. Explore

    The attacker looks for a way in.

    1. [Determine Application Web Server Log File Format] The attacker observes the system and looks for indicators of which logging utility is being used by the web server.

      1 technique
      • Determine logging utility being used by application web server (e.g. log4j), only possible if the application is known by the attacker or if the application returns error messages with logging utility information.
  2. Experiment

    They probe what they found.

    1. [Determine Injectable Content] The attacker launches various logged actions with malicious data to determine what sort of log injection is possible.

      1 technique
      • Attacker triggers logged actions with maliciously crafted data as inputs, parameters, arguments, etc.
  3. Exploit

    They carry out the attack.

    1. [Manipulate Log Files] The attacker alters the log contents either directly through manipulation or forging or indirectly through injection of specially crafted request that the web server will receive and write into the logs. This type of attack typically follows another attack and is used to try to cover the traces of the previous attack.

      3 techniques
      • Indirectly through injection, use carriage return and/or line feed characters to start a new line in the log file, and then, add a fake entry. For example: The HTTP request for "/index.html%0A%0DIP_ADDRESS- - DATE_FORMAT] "GET /forged-path HTTP/1.1" 200 - "-" USER_AGENT" may add the log line into Apache "access_log" (for example). Different applications may require different encodings of the carriage return and line feed characters.
      • Directly through log file or database manipulation, use carriage return and/or line feed characters to start a new line in the log file, and then, add a fake entry. For example: The HTTP request for "/index.html%0A%0DIP_ADDRESS- - DATE_FORMAT] "GET /forged-path HTTP/1.1" 200 - "-" USER_AGENT" may add the log line into Apache "access_log" (for example). Different applications may require different encodings of the carriage return and line feed characters.
      • Directly through log file or database manipulation, modify existing log entries.

Prerequisites

  • Target server software must be a HTTP server that performs web logging.

Skills required

  • Low skill

    To input faked entries into Web logs

Resources required

  • Ability to send specially formatted HTTP request to web server

Consequences

What a successful attack can lead to
ImpactAffectsNote
Modify DataIntegrity

Mitigations

  • Design: Use input validation before writing to web log

  • Design: Validate all log data before it is output

Weaknesses it exploits

  • CWE-20 Improper Input Validation
  • CWE-75 Failure to Sanitize Special Elements into a Different Plane
  • CWE-93 Improper Neutralization of CRLF Sequences
  • CWE-96 Improper Neutralization of Directives in Statically Saved Code
  • CWE-116 Improper Encoding or Escaping of Output
  • CWE-117 Improper Output Neutralization for Logs
  • CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
  • CWE-221 Information Loss or Omission
  • CWE-276 Incorrect Default Permissions
  • CWE-279 Incorrect Execution-Assigned Permissions

Recent CVEs with these weaknesses

  1. 5.5CVE-2026-139984

    A weakness has been identified in walinejs Waline up to 1.43.6. The affected element is an unknown function of the component OAuth Login Callback Handler. Executing a manipulation of the argument Type can lead to improper input validation.…

  2. 4.3CVE-2026-121478

    A flaw was found in sequoia-sq. This flaw allows an attacker to spoof signature verification results displayed in terminal output. Because control characters in user identifiers are not properly sanitized in human-readable output, an attac…

  3. 3.7CVE-2026-140099

    Forge, also called node-forge, is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.4, pki.privateKeyFromPem() and pki.privateKeyFromAsn1() ignore the RSAPrivateKey version and otherPrimeInfos fields and inter…

  4. 9.1CVE-2026-140097

    Vite is a frontend tooling framework for JavaScript. From 4.0.0 until 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7 in Vite, and prior to 1.5.1 in vite-plus, a network-exposed development server embeds request-derived module identifiers from the _…

  5. 5.4CVE-2026-140006

    minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that do not exclusively match the supplied literal input: leading ! ca…

  6. 7.6CVE-2026-125083

    The vault-auth plugin in Kong Gateway Enterprise and Kong AI Gateway does not escape the access token in the HashiCorp Vault KV request URL, allowing a Consumer to read older secret versions and authenticate with rotated, revoked or reassi…

  7. 5.1CVE-2026-136268

    Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in leandrocp mdex allows Content Spoofing via code block content passed to MDEx.to_slack/2. An attacker who controls Markdown that an application converts to Slack…

  8. 2.1CVE-2026-136130

    Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in leandrocp mdex allows Slack mention and broadcast injection via link, image, and wikilink destinations. MDEx.to_slack/2 renders these nodes as Slack <url|label>…

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

Part of

Examples

Most web servers have a public interface, even if the majority of the site is password protected, there is us…

Most web servers have a public interface, even if the majority of the site is password protected, there is usually at least a login site and brochureware that is publicly available. HTTP requests to the site are also generally logged to a Web log. From an attacker point of view, standard HTTP requests containing a malicious payload can be sent to the public website (with no other access required), when those requests appear in the log (such as http://victimsite/index.html?< malicious script> if they are followed by an administrator this may be sufficient to probe the administrator's host or local network.

MITRE's words, unchanged: CAPEC-81 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.