Description
SourceHut meta.sr.ht 0.56.11 before 0.89.0 contains an authorization bypass vulnerability that allows unauthenticated attackers to register accounts when public registration is disabled. Attackers can obtain a CSRF token from /login and POST credentials to /register/step2, which invokes the unchecked GraphQL RegisterAccount mutation to create accounts.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| SourceHut | meta.sr.ht | 0.56.11 – < 0.89.0 | 0.89.0 |
References
- https://git.sr.ht/~sircmpwn/meta.sr.ht/commit/e471ffe75bb6ef11366e46c3b721dd0278f746b5 patch
- https://git.sr.ht/~sircmpwn/meta.sr.ht/commit/1ea24685a76f6456245d0bc7fe6accf6231c4044 technical-description
- https://git.sr.ht/~sircmpwn/meta.sr.ht/tree/0.88.9/item/metasrht/blueprints/auth.py#L121 technical-description
- meta.sr.ht 0.89.0 Release Notes release-notes
- https://blog.arusekk.pl/posts/srht-disabled-registration-bypass/ technical-description exploit
- VulnCheck Advisory: SourceHut meta.sr.ht 0.56.11 before 0.89.0 Registration Authorization Bypass via /register/step2 third-party-advisory