Safeguard
Application Security•

CWE-436 Interpretation Conflict: When Systems Disagree

A proxy or firewall that parses traffic differently from the server behind it can be tricked into passing bad input. CWE-436 explained.

Safeguard Security Team
2 min read

CWE-436 is an interpretation conflict: Product A handles inputs or steps differently than Product B, so A acts wrongly based on its picture of B's state. MITRE says this is generally found in proxies, firewalls, antivirus software and other intermediaries that allow, deny or modify traffic based on how a client or server is expected to behave.

How it happens

A filter looks at a request and decides it is safe. The server behind it reads the same bytes differently and does something else. The attacker lives in the gap.

MITRE's observed examples:

  • Requests with multiple Content-Length headers, which is non-standard, bypassed filters or poisoned a web cache (CVE-2005-1215).
  • Mixed case Content-Type and Content-Disposition headers bypassed an antivirus product while clients still processed them (CVE-2002-0485).
  • FTP clients sending a command with "PASV" in the argument made firewalls misread the server's error as a valid response, allowing filter bypass (CVE-2002-1978).

What an attacker gains

The record lists integrity impact and an unexpected state, varying by context. Practically: filters that stop filtering and caches that serve poisoned content.

How to find it

No detection methods are listed. Try differential testing: send the same ambiguous input to the intermediary and to the backend, and compare how each parses it. Ambiguity cases include duplicate headers, odd casing and malformed lengths.

How to fix it

  1. Reject ambiguous or non-standard input at the edge instead of guessing.
  2. Keep intermediaries and backends on compatible parsers, and update them together.
  3. Normalize traffic in one place so both sides see the same thing.
  4. Do not rely on a single filter as the only defense. Validate again at the destination.

Quick check

Why are proxies especially exposed?

They must predict how another system will read the traffic. Any difference in parsing is a bypass.

Sources

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.