Horizon Alert
Summary of the vulnerability and why it matters
This vulnerability concerns an insufficient session expiration flaw in the Hexpm password reset system, where reset tokens do not expire, potentially allowing account takeover if historical emails are exposed.
- Password reset links remain valid indefinitely.
- Leaked past emails can enable account takeover.
- Confirm relevance and exposure of affected systems.
Attack Path
How an attacker could exploit the issue
An attacker could gain unauthorized access to a user's account by exploiting an issue with how password reset tokens are handled. If a user's past emails are exposed, an attacker could use an old, unexpired password reset email to change the victim's password, even without current access to their email. This could lead to account takeover on the hex.pm platform.
- Entry condition: Leaked password reset email.
- Trigger point: Resending a password reset email.
- Resulting risk: Account takeover.
Live Threat
Current exploitation, exposure, and threat context
Account takeover is a risk when previously issued password reset tokens are exposed through a data breach, as these tokens do not expire and remain valid indefinitely until used. This means an attacker could use a leaked password reset email to gain control of a user's account without needing current access to their email.
- User account credentials.
- Leaked emails could be exploited.
- Unauthorized account access.
Operational Fix
Recommended remediation, mitigation, and detection steps
The hexpm platform team is responsible for addressing this vulnerability. The first practical step is to identify all instances of the hexpm platform, confirm their reachability and business criticality, and then assign ownership for remediation planning.
- Ownership: hexpm platform team.
- Verify first: Exposed password reset tokens.
- Action: Plan remediation based on risk.