Skip to content
Info disclosure Write-up Intermediate

Parsing modern ASP.NET Core Identity password hashes to Hashcat

The report describes a vulnerability where ASP.NET Core Identity password hashes were exposed without authentication on an embedded Linux system. It then analyses why existing tools fail to convert these hashes into Hashcat format, particularly for v3 hashes using HMAC-SHA512, and provides a new conversion tool.

Yannic Hemmer Follow

Published on pentagrid.ch

While this would not be anything out of the ordinary, the environment certainly was. So where do we expect ASP.NET Core Identity hashes?

Yannic Hemmer, Pentagrid AG, on pentagrid.ch

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 existing conversion tools assumed static default values for the PRF, salt length, and subkey length, and did not support HMAC-SHA512 introduced in .NET 7.0, leading to incorrect Hashcat hashes.

Impact

Attackers who obtain exposed ASP.NET Core Identity hashes could crack weak passwords offline, especially for v2 hashes with only 1,000 iterations, which is far below OWASP recommendations.

What the attacker needed

Access to exposed password hashes; knowledge of hash format

The fix

The report recommends using stronger work factors (more iterations) for password hashing, following OWASP recommendations, and avoiding v2 hashes; it also provides a corrected conversion tool.

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.

Password hashes are scrambled versions of passwords stored by websites. If an attacker gets these hashes, they can try to guess the original passwords offline. This report found that some tools for converting these hashes to a cracking format were broken, so the author built a better one.

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.