Summary
ChatWiki's document-page route can expose knowledge-base files without requiring authentication. An unauthenticated attacker who can identify or enumerate the relevant user and file IDs may retrieve PDF-rendered pages belonging to other tenants.
Affected context
The issue affects ChatWiki deployments with the /manage/getLibRawFileOnePage route available. The route is described as missing authentication and as allowing requests that bypass the ownership check, potentially exposing PDF-rendered pages from other tenants' knowledge bases.
Exploit preconditions
- Attack surface: The HTTP GET
/manage/getLibRawFileOnePageroute - Required access: No authentication is required according to the vulnerability description
- Trigger point: A request to retrieve a document page using the route's user and file identifiers
- Why exploitation is possible: Sequentially enumerable identifiers and insufficient authentication or ownership enforcement may allow access to another tenant's documents
Why this happens
The route does not adequately require authentication before serving document content, mapping to CWE-306: Missing Authentication for Critical Function. The described ownership-check bypass also indicates that tenant authorization is not reliably enforced before the file is returned.
Potential impact
- An unauthenticated attacker could read PDF-rendered pages from other tenants' knowledge bases.
- Confidential business or personal information in documents may be disclosed.
- Repeated access could expose a broader collection of tenant documents.
General mitigation guidance
Mitigations generally focus on ensuring that document retrieval is authenticated and authorized for every request.
- Require a verified user identity before serving document content.
- Check tenant and document ownership on the server for each request; do not rely on identifiers being difficult to guess.
- Use secure-by-default access controls that deny access unless explicitly authorized.
- Limit the service account and application privileges involved in document retrieval.
- Minimize sensitive data returned by document-rendering endpoints.
How teams detect issues like this
Review document-serving routes for missing authentication middleware and authorization checks that use client-supplied identifiers without verifying tenant ownership. Static analysis and code review can flag routes that return files or rendered content without an established identity and access-control decision. Monitor access logs for unauthenticated requests, unusual sequential identifier patterns, and document requests spanning multiple tenants; enforce policies requiring authentication and tenant-scoped authorization on sensitive routes.

