Skip to content
Account takeover Write-up Intermediate

ASP.NET Boilerplate Multiple Vulnerabilities

The ASP.NET Boilerplate framework used a guessable default JWT signing secret derived from the project name, and a default admin account with a weak password. An unauthenticated attacker could retrieve the project name from public pages, forge a valid admin token, and create a new administrative user.

Sana Oshika Follow

Published on pulsesecurity.co.nz

Multiple vulnerabilities were discovered in the ASP.NET Boilerplate (ABP) framework, including issues which allow an unauthenticated attacker to gain unauthorized administrative access to an ABP site. These issues also affect the ASP.Net Zero framework.

Sana Oshika (@bigshika), on pulsesecurity.co.nz

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 framework generated a default JWT signing key by combining the project name with a fixed constant, and also created a default admin account with a known weak password.

Impact

An unauthenticated attacker could gain unauthorized administrative access to an ABP instance, and the padding oracle could let an attacker who can see request URLs decrypt tokens and use them with the API.

What the attacker needed

Target runs a newly generated ABP project; project name is visible on public pages; default admin account not removed or password changed

The fix

Users should update the SecurityKey in appsettings.json to a secure random string and change the default admin password; the text does not state that the vendor fixed the issues.

How it was found

  1. Retrieve the project name from unauthenticated pages on the target server.
  2. Generate a JWT signed with the project name plus the constant suffix.
  3. Use the token to check for admin users and find one with administrative permissions.
  4. Create a new admin user using the forged 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 you log in, the server gives you a token (like a digital pass) that proves who you are. This framework used a default secret to sign those tokens that anyone could guess from the project name shown on the login page. So an attacker could make their own valid admin pass and take over the site.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by Sana Oshika

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.