Cockpit Content Platform vulnerable to 2FA bypass
The 2FA secret is exposed in a JWT token after login, allowing an attacker to bypass the 2FA code. A patch is available on the develop branch and expected in version 2.2.2.
cockpit-hq/cockpit
Originally disclosed on huntr
Cockpit Content Platform through version 2.2.1 is vulnerable to a two-factor authentication (2FA) bypass. The 2FA secret is disclosed in a JWT token after user logs into their account, allowing an attacker to bypass the 2FA code. A patch is available on the develop branch and is expected to be part of version 2.2.2.
From the GitHub Advisory Database (GHSA-8wj3-cpmr-8whp, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application includes the 2FA secret in the JWT token issued after login, instead of keeping it server-side.
Impact
An attacker could bypass the 2FA code and gain access to accounts, though the text does not specify how the token is obtained.
What the attacker needed
Access to the JWT token after login
The fix
The issue was fixed in a patch on the develop branch, expected in version 2.2.2.
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 report has not been written yet. The Original tab links to the source.
Two-factor authentication (2FA) adds a second step to logging in, like a code from an app. Here, the secret used to generate that code was included in a token (a piece of data) given to the user after login. That means someone who can see the token could generate valid 2FA codes and get past the second step.
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.