Skip to content
Info disclosure Write-up Beginner

NTLM Authentication Disclosure Vulnerability Report

The report claims that NTLM authentication headers in 401 responses can leak internal domain names, hostnames, and server versions. An attacker could use this information for reconnaissance and potentially replay captured NTLM tokens to gain unauthorised access.

medium.com

Published on medium.com

Imagine you are testing an internal web application (hosted at http://internal-app.example.com). The application is configured to use NTLM authentication for restricted resources.

Dasmanish, on medium.com

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

Likely the server includes internal information in the NTLM challenge token within the WWW-Authenticate header of 401 responses.

Impact

An attacker could gather internal domain names, hostnames, and server versions for reconnaissance, and may attempt to replay captured NTLM tokens to access other systems, though the report does not demonstrate a successful relay.

What the attacker needed

NTLM authentication enabled; access to a protected resource

The fix

NTLM authentication should be restricted or replaced with more secure methods like Kerberos or OAuth, and sensitive information should be removed from NTLM tokens.

How it was found

  1. Request a protected resource and observe the 401 response with a WWW-Authenticate: NTLM header.
  2. Send a follow-up request with a dummy NTLM token and inspect the returned token for internal details.
  3. Look for domain names, hostnames, or server versions in the token.

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 website uses a Microsoft login method called NTLM, it sometimes sends back a special header that contains hidden details about the internal network, like the company's domain name or server names. This report says those details can be seen by anyone who asks for a protected page, which helps attackers learn about the network. The report also warns that stolen login tokens might be reused to break in, though it does not prove this with a real example.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.