GHSA-q3qx-cp62-f6m7
MEDIUMGrav Admin Plugin vulnerable to User Enumeration & Email Disclosure
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Blast Radius
getgrav/gravReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Grav v1.7.49.5 / Admin v1.10.49.1 – User Enumeration & Email Disclosure
Summary
A user enumeration and email disclosure vulnerability exists in Grav v1.7.49.5 with Admin plugin v1.10.49.1.
The "Forgot Password" functionality at /admin/forgot leaks information about valid usernames and their associated email addresses through distinct server responses.
This allows an attacker to enumerate users and disclose sensitive email addresses, which can be leveraged for targeted attacks such as password spraying, phishing, or social engineering.
Details
The issue resides in the taskForgot() function, which handles the forgot password workflow.
Relevant vulnerable logic:
if (null === $user || $user->state !== 'enabled' || !$to) {
...
// Generic message for invalid/non-existing users
$this->setMessage($this->translate('PLUGIN_ADMIN.FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL'));
return $this->createRedirectResponse($current);
}
if ($rateLimiter->isRateLimited($username)) {
...
$interval = $config->get('plugins.login.max_pw_resets_interval', 2);
// Sensitive message for valid users
$this->setMessage($this->translate('PLUGIN_LOGIN.FORGOT_CANNOT_RESET_IT_IS_BLOCKED', $to, $interval), 'error');
return $this->createRedirectResponse($current);
}
When an attacker submits the password reset form at /admin/forgot with an invalid username, the application responds with:
Instructions to reset your password have been sent to your email address
However, when a valid username is supplied, and the attacker repeatedly triggers password reset requests, the application responds with:
Cannot reset password for <USER_EMAIL>, password reset functionality temporarily blocked, please try later (maximum 60 minutes)
This discrepancy in responses enables:
- User Enumeration – Attackers can determine if a username exists in the system by analyzing the response.
- User Email Disclosure – The system discloses the actual email address associated with the account (e.g.,
[email protected]).
This violates best practices for authentication flows, where responses should remain generic to avoid leaking sensitive information.
PoC
- Navigate to the Forgot Password page:
https://<target>/admin/forgot - Submit a reset request with a random/invalid username (e.g.,
invalid_user):
- Response:
Instructions to reset your password have been sent to your email address
- Submit a reset request with a valid username (e.g.,
admin). - Repeatedly request a reset for the same username until the lockout mechanism triggers.
- Response:
Cannot reset password for [email protected], password reset functionality temporarily blocked, please try later (maximum 60 minutes)
- Observe the leaked email address of the admin account in the error message.
Impact
- Severity: Medium
- Type: Information Disclosure / User Enumeration
- Who is Impacted: All Grav sites using Admin plugin v1.10.49.1 with password reset enabled.
- Risks:
- Allows attackers to enumerate valid usernames.
- Exposes email addresses of admin accounts, which can be used in:
- Credential stuffing
- Password spraying
- Phishing/social engineering campaigns
- Further exploitation in combination with other vulnerabilities
Recommendation
-
Modify the
taskForgot()logic to always return a generic, non-identifying message, regardless of whether the username exists or rate limits are hit. -
Example safe response:
If the account exists, password reset instructions will be sent. -
Do not include email addresses ($to) or other sensitive data in error messages.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | getgrav/grav | all versions | 1.8.0-beta.27 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for getgrav/grav. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update getgrav/grav to 1.8.0-beta.27 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-q3qx-cp62-f6m7 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-q3qx-cp62-f6m7 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-q3qx-cp62-f6m7. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-q3qx-cp62-f6m7 in your dependencies?
O3 detects GHSA-q3qx-cp62-f6m7 across Packagist dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.