Summary
Network-AI's ApprovalInbox read APIs fail to enforce configured authorization checks, allowing unauthenticated users to access sensitive approval request data.
When exposed, these endpoints can be queried directly or via cross-origin requests from any website, leaking command details, file paths, justifications, and risk metadata.
Affected context
This vulnerability appears in Network-AI instances where operators rely on the checkAuth/secret mechanism to protect ApprovalInbox data but still expose the HTTP interface.
Specifically, the GET read routes under /approvals do not apply the configured authorization checks, even though other parts of the system may be protected.
The risk increases when these APIs are reachable from user browsers, since responses are marked with Access-Control-Allow-Origin: *, allowing data leakage through cross-origin requests.
Exploit preconditions
- Attack surface: Public or internal HTTP endpoints exposing the ApprovalInbox GET routes
- Required access: Network reachability to the affected Network-AI instance; no authentication required on the vulnerable routes
- Trigger point: Issuing requests to:
GET /approvals/?status=allGET /approvals/:idGET /approvals/statsGET /approvals/sse- Why exploitation is possible: The routes omit enforcement of the configured
checkAuth/secretauthorization logic and send responses with a permissiveAccess-Control-Allow-Origin: *header, enabling direct and cross-origin data access.
Why this happens
The underlying issue is a broken authorization design pattern where some API endpoints are not consistently wired through the same access-control mechanism as the rest of the application.
Although a checkAuth/secret configuration exists, the ApprovalInbox read routes bypass or omit this check entirely, leading to CWE-862: Missing Authorization.
This reflects a common bug class: endpoint- or feature-level authorization gaps, where developers secure write operations or core APIs but unintentionally expose read-only or "utility" routes without equivalent protection.
Potential impact
- Unauthenticated access to detailed approval requests, including shell command strings and target file paths
- Disclosure of operational workflows, automation logic, and infrastructure hints to unauthorized parties
- Leakage of user-supplied justifications and risk levels that may contain sensitive business context
- Facilitation of targeted attacks using disclosed commands, paths, or inferred environment details
- Abuse of cross-origin behavior to quietly exfiltrate approval data when operators visit malicious websites
General mitigation guidance
Mitigation generally focuses on enforcing consistent authorization across all API routes and reducing the implicit trust placed on browser-accessible endpoints.
Common patterns include:
- Centralizing authorization middleware so that every route, including read-only endpoints, passes through the same access-control checks
- Designing approval and audit APIs under a clear access-control model, ensuring secrets or tokens govern all interactions
- Avoiding liberal CORS policies by default; restrict origins to trusted domains and align cross-origin behavior with explicit use cases
- Applying least-privilege principles to exposed API surfaces, ensuring that sensitive operational data is never returned to unauthenticated callers
- Treating route additions and refactors as security-sensitive changes, with explicit review of their authorization handling
How teams detect issues like this
Effective detection starts with cataloging API endpoints and verifying which authorization controls apply to each route.
Security teams can:
- Use static analysis or framework-aware linters to ensure all route handlers invoke standardized authentication and authorization middleware
- Add automated tests or policy checks that simulate unauthenticated requests against sensitive APIs and verify access is denied
- Include authorization mapping in code review templates, requiring reviewers to confirm that new endpoints are covered by existing auth mechanisms
- Apply runtime monitoring or API gateway policies that log and alert on unexpected anonymous access to sensitive paths such as
/approvals/*

