Apache Fineract: Plaintext Password Logging in AuthenticationApiResource on Failed Login Attempts
Summary
Apache Fineract's AuthenticationApiResource includes plaintext passwords in exception messages when authentication requests contain null credentials or malformed JSON. The POST /api/v1/authentication endpoint is publicly accessible without prior authentication (explicitly permitted via `Security...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Apache Software FoundationApache Fineract |
< 1.16.1→ 1.16.1 |
1.16.1 |
Original description The description as published by the source.
Apache Fineract's AuthenticationApiResource includes plaintext passwords in exception messages when authentication requests contain null credentials or malformed JSON. The POST /api/v1/authentication endpoint is publicly accessible without prior authentication (explicitly permitted via SecurityConfig). When a request with a null username or password field is received, the code throws an IllegalArgumentException whose message includes both the full JSON request body and the individual password value in cleartext. The DefaultExceptionMapper then returns this exception message directly in the HTTP 500 response body, exposing the password to the caller. The exception is also logged at WARN level to server logs. This constitutes a PCI-DSS violation (Requirement 8.2.2) and a direct credential exposure.
This issue affects Apache Fineract: before 1.16.1.
Users are recommended to upgrade to version 1.16.1, which fixes the issue.
Source: oss-security (Openwall) NVD