CVE-2019-14537: YOURLS type juggling login bypass in API

CVE-2019-14537 · Severity: critical · CVSS 9.8 · Published 2019-09-23

YOURLS, a popular self-hosted URL shortening service, contains a security flaw in its API component. An attacker can exploit this to bypass the login process and gain unauthorized access to the system. This could allow an unauthorized user to manage links, view statistics, or modify system settings, potentially leading to a full compromise of the service.

Technologies: yourls/yourls (Packagist), YOURLS. Vendors: Packagist, YOURLS.

Quick answers

Is CVE-2019-14537 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2019-14537 being exploited in the wild.
How severe is CVE-2019-14537?
Critical severity, with a CVSS score of 9.8, published 23 September 2019.
Which products and versions are affected?
yourls/yourls (Packagist) < 1.7.4, ECOSYSTEM:introduced=0,fixed=1.7.4; YOURLS <= 1.7.3.
Is there a fix for CVE-2019-14537?
Yes. yourls/yourls (Packagist): upgrade to 1.7.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2019-14537 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2019-14537?
Check whether you run yourls/yourls (Packagist) or YOURLS at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • yourls/yourls (Packagist): upgrade to 1.7.4 or later
    composer require yourls/yourls:^1.7.4

Technical details

A type juggling (type confusion) vulnerability exists in the API authentication component of YOURLS through version 1.7.3. The flaw stems from the use of loose comparison operators in PHP when validating authentication tokens or credentials against expected types. A remote, unauthenticated attacker can exploit this by providing specially crafted input that PHP evaluates as a match, effectively bypassing the login requirement. Successful exploitation grants the attacker full access to API functionality. This issue is resolved in version 1.7.4.

Affected products

  • YOURLS YOURLS <= 1.7.3

Identifiers

  • CVE-2019-14537
  • GHSA-vf23-f26f-mjj9

Timeline

  • 2019-09-23: advisory
  • 2019-09-22: patched: Version 1.7.4 released

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.