Skip to content
Account takeover Disclosed report Intermediate CVE-2022-2818

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).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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.

More from cockpit-hq/cockpit

View all

The newest disclosed reports for this program.

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.