Privilege Escalation Affecting facturascripts/facturascripts package, versions <2022.2


0.0
high

Snyk CVSS

    Attack Complexity Low
    Confidentiality High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.19% (57th percentile)
Expand this section
NVD
9.8 critical

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PHP-FACTURASCRIPTSFACTURASCRIPTS-2825180
  • published 15 May 2022
  • disclosed 15 May 2022
  • credit Distorted_Hacker (@gaurav-g2)

How to fix?

Upgrade facturascripts/facturascripts to version 2022.2 or higher.

Overview

Affected versions of this package are vulnerable to Privilege Escalation due to Type Juggling, it is possible to confuse the application when verifying passwords. For example, the following expression, when used in password verification process, will evaluate to true: password == 0. The fix makes sure that the entered password is of the same type as the one that is stored in the database.

References