Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-58156 Overview
Centurion ERP, an open-source enterprise resource planning platform focused on IT Service Management (ITSM) and automation, contains an authorization flaw in versions 1.12.0 through 1.20.x. An authenticated user can query the authentication tokens endpoint and view token records belonging to other users in the database. The exposed records contain hashed token values rather than plaintext tokens, limiting the direct reuse potential. However, the disclosure still exposes token metadata and hash material that should not be accessible to non-owning users. The issue is tracked as CWE-285: Improper Authorization and was patched in version 1.21.0.
Critical Impact
Any authenticated Centurion ERP user can enumerate hashed authentication tokens belonging to other accounts, exposing sensitive credential material stored in the database.
Affected Products
- Nofusscomputing Centurion ERP 1.12.0 through 1.20.x
- Fixed in Centurion ERP 1.21.0
- Deployments using token-based API authentication are directly impacted
Discovery Timeline
- 2025-08-29 - CVE CVE-2025-58156 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-58156
Vulnerability Analysis
The flaw resides in the authentication token API viewset. The viewset returned all token records from the database rather than filtering by the requesting user. Any authenticated caller could therefore issue a request to the tokens endpoint and receive rows corresponding to other accounts.
The returned records contain the hashed token value, not the original plaintext token issued to the user. Direct reuse of a hashed token against the API is not possible. However, exposure of hashes enables offline analysis, correlation of token issuance across accounts, and potential downstream attacks if hashing weaknesses are later discovered.
The __str__ method of the token model also returned the token attribute directly, increasing the risk of accidental token exposure through logs, admin interfaces, or serialization paths.
Root Cause
The root cause is missing object-level authorization on the token viewset. The Django REST framework get_queryset method did not scope results to request.user, violating the principle that users should only see resources they own. This is a classic CWE-285 Improper Authorization pattern in REST API design.
Attack Vector
An attacker requires valid credentials for any Centurion ERP account. Once authenticated, the attacker issues a standard GET request to the authentication tokens API endpoint. The response includes token records for all users rather than only the caller. No privilege escalation or specialized tooling is required.
The patch applied in commit 332eb10 introduces user-scoped filtering and prevents the model from returning token values in its string representation:
# app/api/viewsets/auth_token.py - patched get_queryset
def get_queryset(self):
if self.queryset is None:
self.queryset = super().get_queryset().filter(user = self.request.user)
return self.queryset
# app/api/models/tokens.py - patched __str__ method
def __str__(self):
"""NOTE: DO NOT OUTPUT TOKEN"""
return 'users token'
Source: GitHub Commit 332eb10
Detection Methods for CVE-2025-58156
Indicators of Compromise
- Unusual GET requests to the Centurion ERP authentication tokens API endpoint from low-privilege user accounts
- Response payloads from the tokens endpoint containing more records than the requesting user should own
- Application or web server logs showing repeated enumeration of the tokens API path
Detection Strategies
- Review Centurion ERP application logs for requests to /api/v2/auth/token/ (or equivalent token listing routes) that return large result sets
- Correlate authenticated session identity with the number of token records returned; a mismatch indicates exploitation
- Compare running Centurion ERP versions against 1.21.0 to identify vulnerable deployments
Monitoring Recommendations
- Enable verbose API access logging on Centurion ERP and forward logs to a centralized analytics platform
- Alert on authenticated API responses containing token hash fields sent to users other than the token owner
- Monitor for token creation, rotation, and revocation events during and after the vulnerable version window
How to Mitigate CVE-2025-58156
Immediate Actions Required
- Upgrade Centurion ERP to version 1.21.0 or later without delay
- Revoke and regenerate every authentication token created while running an affected version between 1.12.0 and 1.20.x
- Audit user accounts and API activity for signs of enumeration against the token endpoint
- Rotate any downstream credentials or integrations that relied on the exposed tokens
Patch Information
The fix is contained in commit 332eb10 and shipped in Centurion ERP 1.21.0. The patch adds user-scoped filtering to the token viewset and removes token value output from the model's string representation. Additional context is available in GitHub Pull Request #974 and GitHub Security Advisory GHSA-x75j-cm35-5qcg.
Workarounds
- No supported workaround exists; the vendor notes that mitigation would require disabling token authentication entirely
- Webmasters unable to upgrade immediately should purge all authentication tokens from the database to remove exposed material
- Restrict Centurion ERP access to trusted networks until the upgrade to 1.21.0 completes
# Verify installed Centurion ERP version and upgrade
pip show centurion-erp | grep -i version
pip install --upgrade centurion-erp==1.21.0
# After upgrading, remove all pre-existing authentication tokens
# (example using Django management shell)
python manage.py shell -c "from api.models.tokens import AuthToken; AuthToken.objects.all().delete()"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

