Summary
EUSurvey's public draft-saving endpoint can overwrite another participant's saved draft and disclose the private invitation token used to resume it. The risk arises when a request can reference an existing invitation without the server verifying that the invitation, survey, and participation group belong together.
Affected context
The issue affects EUSurvey through version 1.6, before commit 118facd, in the public POST /runner/draft/runner endpoint. The draft handler and answer service load an existing draft by invitation without checking its relationship to the submitted survey and participation group, then update the draft and return a resume link containing the invitation token.
Exploit preconditions
- Attack surface: The public draft-saving POST endpoint
- Required access: No authentication is required, according to the report
- Trigger point: Processing a request that refers to an existing draft invitation
- Why exploitation is possible: The handler uses the invitation to find a draft but does not verify that the invitation, survey, and participation group are associated with one another before updating the draft and returning a resume link
Why this happens
The underlying issue is a missing authorization and ownership check when accessing a draft through an invitation identifier. The server treats the identifier as sufficient to select and modify a record without validating the relationships among the draft, survey, and participation group. This is an authorization bypass involving user-controlled record identification, mapped to CWE-639: Authorization Bypass Through User-Controlled Key.
Potential impact
- An unauthenticated attacker could overwrite another participant's saved answers.
- A private invitation token could be disclosed in the returned resume link.
- A participant's ability to resume or complete a survey could be disrupted.
- Exposed invitation tokens could enable further unauthorized access to associated survey functionality.
General mitigation guidance
Defensive patterns include enforcing authorization and ownership checks on every draft read or update, and verifying that the invitation, survey, and participation group form a valid association before changing data or returning a resume link. Treat client-submitted identifiers as untrusted, avoid exposing secret tokens unnecessarily, and apply least privilege to the services handling survey data. Secure-by-default designs should deny access when record ownership or relationships cannot be established.
How teams detect issues like this
- Review draft retrieval and update paths for authorization checks tied to the authenticated participant or an explicitly validated invitation.
- Use static analysis or code review rules to flag database lookups and mutations based on user-controlled identifiers without ownership checks.
- Test that mismatched invitation, survey, and participation-group references are rejected.
- Apply policy checks and automated review in development workflows to detect insecure direct object reference and authorization patterns.

