phpFox <= 4.8.13 (redirect) PHP Object Injection Vulnerability

https://www.phpfox.com

• Affected Versions:

Version 4.8.13 and prior versions.

• Vulnerability Description:

User input passed through the “url” request parameter to the /core/redirect route is not properly sanitized before being used in a call to the unserialize() PHP function. This can be exploited by remote, unauthenticated attackers to inject arbitrary PHP objects into the application scope, allowing them to perform a variety of attacks, such as executing arbitrary PHP code.

• Proof of Concept:

https://karmainsecurity.com/pocs/CVE-2023-46817.php

• Solution:

Upgrade to version 4.8.14 or later.

• Disclosure Timeline:

[05/10/2023] – Vendor contacted through https://clients.phpfox.com

[05/10/2023] – Vendor response stating “we currently do not have such security requirements”

[06/10/2023] – CVE identifier requested

[09/10/2023] – Vulnerability details shared with the vendor, stating the issue is quite critical

[17/10/2023] – Vendor contacted again, asking for an update

[18/10/2023] – Vendor response stating “this issue is fixed in our latest version (4.8.13)”, but that’s not the truth

[26/10/2023] – Version 4.8.14 released

[27/10/2023] – CVE identifier assigned

[27/10/2023] – Public disclosure

• CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2023-46817 to this vulnerability.

• Credits:

Vulnerability discovered by Egidio Romano.

• Other References:

https://docs.phpfox.com/display/FOX4MAN/phpFox+4.8.14