CVE-2023-1540: Answer has Observable Response Discrepancy
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.25444%
CWE
Published
3/21/2023
Updated
3/23/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/answerdev/answer | go | < 1.0.6 | 1.0.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key functions: 1) The service layer's RetrievePassWord in user_service.go explicitly returned a UserNotFound error when an email didn't exist, creating a detectable difference in error responses. 2) The controller in user_controller.go passed this error to the client. The patch fixed this by making the service layer return nil error regardless of email existence and modifying the controller to handle the uniform response. The commit message confirms this was an intentional fix for response discrepancy.