Skip to content

GHSA-6648-6g96-mg35 CVE-2024-22202

phpMyFAQ User Removal Page Allows Spoofing Of User Details

Medium Packagist
Severity
5.7 / 10
Medium · CVSS 3.1
Exploit chance (EPSS)
0.59%
Chance of exploitation in the next 30 days. Higher than 48.07% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-284 Improper Access Control
Fix
3.2.5
Upgrade phpmyfaq/phpmyfaq to this version or later

Description

Summary

phpMyFAQ's user removal page allows an attacker to spoof another user's detail, and in turn make a compelling phishing case for removing another user's account.

Details

phpMyFAQ's user removal page allows an attacker to spoof another user's detail, and in turn make a compelling phishing case for removing another user's account. Whilst the front-end of this page doesn't allow changing the form details, an attacker can utilize a proxy to intercept this request and submit other data. Upon submitting this form, an email is sent to the administrator informing them that this user wants to delete their account. An administrator has no way of telling the difference between the actual user wishing to delete their account or the attacker issuing this for an account they do not control.

PoC

We are logged in as hacker and visit /user/request-removal. This brings us to the following page. We are not able to change the username, Your name and Your email address fields on this page. image

However, we intercept this request using a proxy tool such as BurpSuite. image

We can now edit the request before sending it. We change the fields mentioned above to the details of another user, and send the request. image

This results in the following email being sent to the administrator. For them, it looks like the victim wants to delete their account. image

Impact

The impact of this vulnerability is that administrators cannot trust the emails sent by the platform. An attacker can easily make a compelling case to perform phishing and get victim accounts deleted.

Affected versions

Packagist

PackageVulnerableFixed in
phpmyfaq/phpmyfaq
< 3.2.5
3.2.5

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

phpmyfaq/phpmyfaq Packagist → 3.2.5

composer
composer require phpmyfaq/phpmyfaq:^3.2.5

Severity breakdown

CVSS 3.1 5.7

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Weakness

CWE-284: Improper Access Control

The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.

How to prevent it
  • Architecture and Design, Operation: Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
  • Architecture and Design: Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-rw77-vq4g-x3hp
phpMyFAQ has SQL Injection in `StopWords::add()` — Unescaped Stop Word Insertion
High Also affects phpmyfaq/phpmyfaq
GHSA-8gpw-xvpf-hvx5
phpMyFAQ's two-factor authentication login bypasses the password factor
High Also affects phpmyfaq/phpmyfaq
GHSA-pgwp-vc7q-cvj3
phpMyFAQ has Stored XSS in Admin FAQ Editor via HTML Entity Bypass in Frontend FAQ Submission
High Also affects phpmyfaq/phpmyfaq
GHSA-mf8r-wm2w-f8c5
phpMyFAQ public FAQ APIs expose inactive FAQ content
Medium Also affects phpmyfaq/phpmyfaq
GHSA-88g4-74f3-63x9
phpMyFAQ has Potential Authenticated Path Traversal in PDF Export
Medium Also affects phpmyfaq/phpmyfaq
GHSA-pg62-f8g4-4wqh
phpMyFAQ privilege escalation: GroupController::updatePermissions lets a GROUP_EDIT admin grant rights they do not hold
High Also affects phpmyfaq/phpmyfaq
GHSA-985r-q3qp-299h
phpMyFAQ has an incomplete fix for GHSA-xvp4-phqj-cjr3 — editUser() and updateUserRights() lack authorization guards
High Also affects phpmyfaq/phpmyfaq
GHSA-8c6h-7g6x-m5x4
phpMyFAQ: Missing userHasPermission() in 4 API write endpoints (CVE-2026-24421 Incomplete Fix)
Medium Also affects phpmyfaq/phpmyfaq
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor