Summary
EUSurvey exposes private survey responses through an endpoint that retrieves a contribution by its sequential database ID without applying the usual access checks. An unauthenticated attacker who can reach the endpoint may enumerate IDs and read other respondents' answers, including free-text responses that could contain personal data.
Affected context
The issue occurs in EUSurvey's contribution PDF handling for the GET /preparepublishedcontribution/{id} endpoint. It is relevant where the endpoint is reachable and responses are looked up by sequential database ID without the normal response-level authorization checks.
Exploit preconditions
- Attack surface: The contribution endpoint must be reachable by the attacker.
- Required access: No authentication is required according to the vulnerability description.
- Trigger point: A request to retrieve a published contribution using its response ID.
- Why exploitation is possible: The handler uses the supplied sequential ID to locate a response but skips normal access checks, allowing IDs to be enumerated.
Why this happens
The handler retrieves a response using an identifier without verifying that the requester is authorized to access that specific response. This is an authorization weakness involving a user-controlled key, mapped to CWE-639: Authorization Bypass Through User-Controlled Key. Sequential identifiers can make object discovery easier, but the underlying flaw is the missing per-response access check.
Potential impact
- Attackers may read private responses submitted to published surveys.
- Free-text answers may disclose personal or otherwise sensitive information.
- Respondents' confidentiality and trust in the survey service could be undermined.
- Exposed responses could be collected or used for further privacy abuse.
General mitigation guidance
Defensive patterns focus on enforcing authorization for every response retrieval, regardless of whether a survey is published or an identifier is difficult to guess.
- Check the requester's access rights against the specific response and its survey before returning any data.
- Apply authorization consistently across PDF generation and other response access paths.
- Treat request-supplied identifiers as untrusted and avoid relying on identifier secrecy or unpredictability as an access control.
- Return only the response data required for the authorized operation, and run service components with least privilege.
How teams detect issues like this
- Review response retrieval paths for database lookups by request-supplied IDs that lack object-level authorization checks.
- Use static analysis or code review rules to flag direct object access where access-control checks are absent or occur after data retrieval.
- Test unauthenticated and low-privilege access to contribution endpoints using IDs belonging to other respondents.
- Monitor for unusual sequences of requests to contribution endpoints and enforce policies requiring authorization before sensitive data is returned.

