Rage Against the Authentication State Machine
An authentication bypass in Gitblit's SSH service allowed an attacker to log in as any user who had at least one public key assigned, without knowing the user's password or private key. The flaw was fixed in version 1.10.
This blogpost describes our journey through discovering CVE-2024-28080, an authentication bypass vulnerability in Gitblit, “an open-source, pure Java stack for managing, viewing, and serving Git repositories”. The vulnerability affects the SSH service and can only be exploited for users that have at least one public…
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 a flaw in the SSH authentication state machine that allowed the authentication step to be bypassed when a public key was present.
Impact
An attacker could log in as any user with a public key, potentially gaining that user's repository access.
What the attacker needed
Target user has a public key; SSH service exposed
The fix
The vulnerability was fixed in Gitblit version 1.10.
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.
Gitblit is a tool for hosting Git repositories. Its SSH login checks a user's public key, but a mistake in the login process let someone skip the password check and act as that user. The attacker only needed to know that the victim had a public key set up.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.