Summary
sysPass exposes a broken object-level authorization flaw in its JSON-RPC API, allowing token holders to operate on accounts without proper per-object access checks.
Under these conditions, an attacker with any valid API token can enumerate account metadata, overwrite stored passwords, and delete accounts across the vault, bypassing intended token scope.
Affected context
The vulnerability manifests in sysPass deployments that expose the JSON-RPC API to users or integrated services.
It is most relevant where API tokens are used to constrain access to specific accounts or subsets of vault data.
Because AccountController methods are callable without enforcing AccountFilterUser checks, the system may treat all accounts as accessible to any token holder, even when administrators expect fine-grained, per-account permissions.
Exploit preconditions
- Attack surface: JSON-RPC API endpoints provided by sysPass, specifically AccountController methods.
- Required access: Possession of any valid API token, including tokens with limited intended scope.
- Trigger point: Invoking methods such as
viewAction,editAction,deleteAction, oreditPassActionwith account identifiers. - Why exploitation is possible: Object-level authorization (AccountFilterUser) is not enforced for these methods, so the backend does not verify whether the token is allowed to access or modify the targeted account.
Why this happens
The core issue is a missing or incomplete object-level authorization layer for account resources in the JSON-RPC API.
While tokens exist to represent user or integration permissions, the relevant AccountController methods do not consistently invoke checks such as AccountFilterUser before performing operations on specific accounts.
This aligns with CWE-639: Authorization Bypass Through User-Controlled Key, where user-supplied identifiers (e.g., account IDs) can be used to access or modify objects without proper verification that the caller is authorized for that particular resource.
Potential impact
- Attackers with a valid API token may enumerate account metadata across the entire vault.
- They can overwrite stored passwords for accounts they do not legitimately control.
- They may delete accounts, causing loss of credential records and operational disruption.
- They could indirectly escalate access by changing passwords to values under their control, enabling use of those credentials elsewhere.
- They can undermine trust in the vault's integrity and auditability.
General mitigation guidance
Effective mitigation focuses on enforcing object-level authorization consistently for all account operations exposed via the API.
Common defensive patterns include:
- Applying resource-level access checks (such as account ownership or membership validation) before performing view, edit, delete, or password update actions.
- Using a central authorization layer or policy engine that ties each API call to specific object permissions rather than relying solely on token presence.
- Designing tokens and roles to express fine-grained access scopes, and ensuring every controller method consults those scopes before acting on a targeted account.
- Minimizing broad "global" tokens and preferring least-privilege credentials for integrations and users.
- Treating any client-supplied object identifiers (e.g., account IDs) as untrusted and resolving them through access-aware queries.
How teams detect issues like this
Organizations can discover and monitor broken object-level authorization issues through a mix of:
- Targeted code review that examines controller methods and confirms that every operation on a specific resource passes through a consistent authorization check.
- Static analysis rules or custom linters that flag direct use of user-controlled identifiers (like account IDs) in data access operations without a preceding authorization step.
- Security-focused test suites and API fuzzing that attempt cross-account operations using tokens with restricted intended scopes to validate enforcement.
- Policy enforcement in development workflows that requires new endpoints to specify and document their resource-level authorization model.
- Periodic access control audits that compare intended permission models with real-world behavior observed in logs and test environments.

