Summary
Firekylin's admin API may allow users with the editor role to read data intended only for administrators because its base guard permits GET actions without adequate authorization checks. Exposed secrets and credentials could enable further access, including publishing posts as an administrator through the admin post-push function.
Affected context
The issue affects Firekylin through version 2.18.1 in admin API routes protected by a guard that permits GET actions. An editor who can reach the relevant endpoints may be able to read options.js values such as TOTP secrets, push credentials, and cloud storage keys, as well as other users' app_key and app_secret values through user.js.
Exploit preconditions
- Attack surface: Firekylin admin API endpoints that handle GET requests
- Required access: An authenticated account with the editor role and access to the relevant API routes
- Trigger point: A request to an affected endpoint, such as
options.jsoruser.js - Why exploitation is possible: The base guard permits GET actions without sufficiently checking whether the editor is authorized to read the requested administrator-only data
Why this happens
The API applies an authorization policy that allows GET actions without consistently verifying the caller's role and permissions for the requested resource. This is an improper authorization flaw mapped to CWE-862, where access-control checks are missing or insufficient for a protected operation. Sensitive data access should be authorized at the resource or action level rather than inferred from the HTTP method.
Potential impact
- Editors could read administrator-only TOTP secrets or service credentials.
- Exposed cloud storage or push credentials could enable unauthorized access to connected services.
- Other users' application keys and secrets could be disclosed.
- An attacker with usable credentials could publish posts as an administrator through
admin/post_push.
General mitigation guidance
Defensive patterns include enforcing explicit, server-side authorization checks for every sensitive API action and resource, regardless of HTTP method. Apply least privilege to roles, return only the data required for each request, and avoid exposing secrets through general-purpose read endpoints. Treat credentials as sensitive, limit their scope, and use secure-by-default access policies that deny requests unless permission is explicitly granted.
How teams detect issues like this
Review API route guards and handlers for policies that grant access based only on HTTP method or broad role membership. Static analysis and code review can look for sensitive data returned without resource-level authorization checks. Test role-based access policies to verify that editor accounts cannot read administrator-only settings or other users' secrets, and use policy enforcement to require authorization checks on sensitive routes.

