liveBook · Manning

Zero-day vulnerability

As explained in Secure APIs

A zero-day vulnerability is a security flaw for which no known fix is available.

A zero-day vulnerability is a security flaw for which no known fix is available. It matters because attackers may exploit such flaws before normal defenses or patches exist. section 9.4

A web application firewall (WAF) can add protection by sitting as a reverse proxy in front of APIs and inspecting requests for malicious behavior. It may block suspicious traffic or clean the input, but cleaning can create bypass risks. section 9.4

A request that defeats weak filtering

An attacker targets /payments with a SQL-injection filter such as "' or 1=1--". Obfuscating it as "+o//r+1=1--" may evade pattern matching, after which sanitization can restore executable SQL. Consequences include unexpected behavior, unauthorized records, or service disruption.

How Secure APIs covers it

How deep it goes
Defines the flaw and explains WAF filtering, but stops short of describing zero-day discovery, patching, or incident response.
Examples
Uses a /payments SQL-injection request, an obfuscated variant, and unauthorized access to other users’ records.
What you can do after
Operate/configure a WAF as a reverse proxy and recognize why blocking is safer than relying on input cleaning alone.
How it connects
Connects zero-day vulnerabilities with web application firewalls, SQL injection, cross-site scripting, reverse proxies, and WAF bypass attacks.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Secure APIs. The section links point to the parts of the book it draws on.