Summary
EveryDocs Core contains an authorization flaw in which authenticated users may access records belonging to other users through lookups that do not verify ownership. When record identifiers can be guessed or enumerated, an attacker may read, modify, or delete other users' documents and related resources.
Affected context
The issue affects EveryDocs Core before 1.6.1, where multiple controllers use record identifiers to retrieve models without consistently scoping those lookups to the authenticated user. It becomes risky when an authenticated user can reach these controller actions and identifiers are predictable or discoverable.
Exploit preconditions
- Attack surface: Authenticated application endpoints that retrieve or manage documents, files, folders, tags, or people by record ID
- Required access: An account with access to the affected endpoints; self-registration may make account creation available
- Trigger point: A controller action that looks up a record using an identifier supplied in the request
- Why exploitation is possible: The lookup is not adequately constrained by the current user's ownership or authorization, and sequential identifiers may be enumerable
Why this happens
The underlying issue is an insecure direct object reference: controllers retrieve records by ID without consistently checking whether the authenticated user is authorized to access them. This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where a user-controlled identifier can be used to access another user's resource because authorization is not enforced for that object.
Potential impact
- An authenticated user may read other users' documents or stored files
- An attacker could modify or delete records belonging to other users
- Folders, tags, or people records may be renamed or deleted without authorization
- Unauthorized changes could affect data integrity and availability
General mitigation guidance
Mitigation typically focuses on enforcing object-level authorization at every resource access point.
Common defensive patterns include:
- Scope record lookups to the authenticated user's authorized resources
- Apply centralized authorization checks for read, update, and delete operations
- Treat request-supplied identifiers as untrusted and avoid relying on identifier secrecy
- Use least-privilege access controls and deny access by default when ownership cannot be verified
- Add tests that verify users cannot access or change records owned by other users
How teams detect issues like this
High-level detection approaches include:
- Static analysis searches for request-derived identifiers passed to unscoped model lookups
- Code review checks that each read, update, and delete action performs object-level authorization
- Policy enforcement requiring authorization checks for resource access in controllers or service layers
- Automated tests using multiple user accounts to check for cross-user access to records

