Summary
EUSurvey's bulk-change endpoint does not verify that an authenticated user is authorized to manage the surveys named in a request. An ordinary user may therefore take control of another user's survey or delete it if the endpoint is accessible to their account.
Affected context
The issue affects EUSurvey versions 1.5.5 through 1.6 before commit d5295d5, in the POST /forms/bulkchange endpoint. The risk arises when the endpoint accepts survey identifiers and requested privilege changes or deletion actions without checking the authenticated user's rights for each survey.
Exploit preconditions
- Attack surface: The authenticated
POST /forms/bulkchangeendpoint - Required access: An account that can authenticate to EUSurvey; an ordinary
ROLE_USERaccount may be sufficient - Trigger point: Processing a bulk-change request that names another user's survey and requests an access-right change or deletion
- Why exploitation is possible: The endpoint accepts survey IDs and privilege values, while the operation does not enforce per-survey authorization
Why this happens
The application performs sensitive operations on surveys without verifying that the requester has permission to manage the specified resources. This is a missing authorization control mapped to CWE-862: Missing Authorization. Accepting client-supplied resource identifiers or privilege values without enforcing ownership or access rights can allow users to act beyond their intended permissions.
Potential impact
- An attacker may grant themselves full control of another user's survey.
- They could read drafts and survey results, edit forms, or manage invitations.
- They may delete surveys, affecting their availability and integrity.
General mitigation guidance
Defensive patterns include enforcing authorization on the server for every requested survey and every sensitive operation, including privilege changes and deletion. Derive the caller's identity from the authenticated session, verify resource-level permissions before applying changes, and avoid trusting client-supplied privilege values. Apply least privilege to roles and use secure-by-default access controls that deny operations unless explicitly authorized.
How teams detect issues like this
Review bulk and batch endpoints for resource identifiers supplied by clients and confirm that each item receives a server-side authorization check. Static analysis and code review can look for sensitive operations that use request-provided IDs without corresponding permission checks. Automated tests and policy checks can verify that users cannot modify or delete resources they do not own or have explicit rights to manage.

