Skip to content
GHSA Q2q3 44pf 4m3f

GHSA Q2q3 44pf 4m3f

github.com • November 18, 2026

clearflask-server/src/main/java/com/smotana/clearflask/web/resource/AccountResource.java:

@RolesAllowed ({Role.ADMINISTRATOR}) only requires some logged-in ClearFlask account, not the one the invitation named. The same gap exists on the new-account-signup path:

clearflask-server/src/main/java/com/smotana/clearflask/store/impl/DynamoProjectStore.java:

Nowhere in acceptInvitation is invitation.getInvitedEmail() compared to anything accepteeAccountId. The only conditions checked are that the invitation exists, is not already accepted, and the project row exists - never who is accepting it. The invitation link is also not wrapped in any signed token embedding the email: the notification sent to the invitee substitutes the bare invitationId directly into the email's button URL, and getInvitation() looks it up by that same raw ID as the DynamoDB primary key, so there is no stronger mechanism that a real email-link click would additionally enforce beyond what is described here.

Environment: the project's own published self-host Docker Compose stack (pre-built ghcr.io/clearflask/clearflask-connect and clearflask-server images, MariaDB, localstack), brought up via docker compose --profile with-deps up -d using the repo's own docker-compose.self-host.yml with no modification beyond host port remaps for an isolated test instance. Every request below went through the Connect-fronted entrypoint (the real client-facing path), against commit 1dcf4dc .

As Alice, create a project (POST /api/v1/project/admin). Response: {"projectId":"myproject-txgoh", ...}.

As Alice, invite [email protected] to the project: POST /api/v1/project/myproject-txgoh/admin/admins?email=victim%40intended-recipient.example. Response: {"invitation":{"invitationId":"3ae331bd9b3740de93fc840567f47bbd","email":" [email protected] "}}.

CONTROL: as Alice, list the project's admins and pending invitations: GET /api/v1/project/myproject-txgoh/admin/admins. Response: {"admins":[{"accountId":"alice2-dgwdk","name":"Alice2","email":" [email protected] ","role":"Owner"}],"invitations":[{"invitationId":"3ae331bd9b3740de93fc840567f47bbd","email":" [email protected] "}]}. Only Alice (Owner) is an admin; the invitation is still pending, for [email protected] .

EXPLOIT: as [email protected] , accept the invitation issued to [email protected] : POST /api/v1/admin/account/invitation?invitationId=3ae331bd9b3740de93fc840567f47bbd. Response: HTTP 200, {"projectId":"myproject-txgoh"}.

VERIFY: as Alice, list the project's admins again: GET /api/v1/project/myproject-txgoh/admin/admins. Response: {"admins":[{"accountId":"alice2-dgwdk","name":"Alice2","email":" [email protected] ","role":"Owner"},{"accountId":"colluder2-pkuza","name":"Colluder2","email":" [email protected] ","role":"Admin"}],"invitations":[]}. [email protected] is now listed as an Admin of Alice's project, despite never being the invited email, and the pending invitation is gone (consumed).

Independently reproduced a second time on a fully separate, freshly created project and pair of accounts, with identical results.

Possession of an invitationId is sufficient to become a full admin of the target project, regardless of the accepting account's email. invitationId is a 128-bit random UUID, so it is not practically guessable directly, but the invitation flow's entire security model assumes the only way to obtain it is to be the actual invited recipient reading their own email; nothing in this application verifies that assumption at the only point that matters, acceptance time. Any channel that discloses the ID to someone other than the intended recipient - the invite link being forwarded, accidentally pasted into a shared channel, or simply handed by the invited person to someone else - results in a project admin grant to whoever holds the link, not to the person the inviter named. Project admin access includes full configuration control (categories, workflows, integrations, OAuth/SSO secrets) and the ability to invite further admins, so this is a durable, project-wide compromise.

Suggested fix: store the invited email on the session/claim used at acceptance time and require it to match the accepting account's verified email before calling acceptInvitation, for both the new-signup and already-logged-in acceptance paths; reject the acceptance (without consuming the invitation) when they differ.

Remediation and timeline

Fixed on 2026-11-14 in commit 54e387023d6149058244f0f2bdac37d0e02cd2bd . Both signup and authenticated invitation acceptance bind redemption to the accepting account email. A mismatched email is rejected without consuming the invitation. Invitation consumption also atomically enforces single use and expiry.

Production deployment completed: 2026-11-14 14:50:45 UTC ( successful deployment ). The deployed bytecode and HTTP health checks were verified, and the application generation was retired.

Fixed self-host release: 2.7.3 , published 2026-11-14 15:07:27 UTC ( release ). Upgrade earlier releases to 2.7.3 or later.

The production investigation found no evidence of exploitation in the retained data and logs. Historical exploitation cannot be ruled out: no invitation records remained, and retained access logs covered November 10-14, 2026.

Extracted Entities

Domains (2)

Platforms (2)

Tools (1)

Vulnerabilities (1)