One Null Byte, One Leaked Version String: Fixing an Azure Application Gateway Fingerprinting
The Azure Application Gateway returned its default error page containing the string 'Microsoft-Azure-Application-Gateway/v2' when a URL-encoded null byte was added to the path, revealing the gateway product and version. An attacker could use this information to focus attacks on known issues for that platform.
Published on medium.com
A pentest report landed with a finding that looked almost too small to matter: add %00 to a URL and the server tells you what it is. No data stolen, no login bypassed, just one line of HTML.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The gateway generates default error pages for requests it rejects, and these pages include the product name and version string.
Impact
An attacker could learn the gateway product and version, which may help them target known vulnerabilities, though the severity is low.
What the attacker needed
None
The fix
The fix is to configure custom error pages on the Azure Application Gateway for all gateway-generated status codes, hosting a generic page without product or version names.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When a web server or gateway encounters a malformed request, it often returns an error page. If that page includes the product name and version, it tells an attacker what software is running, which helps them choose the right attack. Here, adding a null byte (a special character) to the URL caused the gateway to show its default error page with its name and version.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.