Summary
SurveyKing's linked survey feature does not adequately check whether a referenced survey belongs to the authenticated caller's project. An authenticated attacker may use this gap to read, modify, or create responses in another user's survey.
Affected context
The issue affects the linked survey feature in SurveyKing 1.12.0 through 1.13.2. It arises when operations use a referenced linkSurveyId without confirming that the target survey belongs to the caller's project.
Exploit preconditions
- Attack surface: Authenticated requests to linked survey functionality
- Required access: A valid account able to use the relevant feature; the description does not specify further role requirements
- Trigger point: Processing a linked option that references a survey through
linkSurveyId - Why exploitation is possible: The application does not verify that the referenced survey is within the caller's authorized project before reading or changing responses
Why this happens
The underlying flaw is a missing object-level authorization check. The application uses a caller-supplied object identifier to access a survey but does not confirm ownership or project-level access before performing the requested operation.
This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where an attacker can alter a key used to select an object and access data outside their permitted scope.
Potential impact
- Attackers may read responses from another user's survey
- Attackers could rewrite existing responses
- Attackers may create responses in surveys they do not own
- Unauthorized changes could affect survey data integrity and confidentiality
General mitigation guidance
Defensive patterns should ensure that authorization is evaluated for every object access, not inferred from authentication or possession of an identifier.
- Scope survey lookups to the caller's authorized project or tenant
- Check ownership and permissions before reading, updating, or creating responses
- Prefer server-derived authorization context over trusting client-supplied identifiers
- Apply least privilege to accounts and service components that handle survey data
- Use consistent authorization checks across all linked survey operations
How teams detect issues like this
Review code paths that accept survey identifiers and use them to retrieve or mutate records. Look for missing ownership or project-scope checks, especially in linked survey handlers and response operations.
Static analysis and code review can flag direct object lookups based on request parameters. Runtime monitoring and policy tests can also identify requests that cross project boundaries or access objects outside the caller's authorized scope.

