Improper Access Control Affecting automattic/jetpack package, versions <9.8


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.1% (42nd percentile)

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 Learn

Learn about Improper Access Control vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-AUTOMATTICJETPACK-6672923
  • published24 Apr 2024
  • disclosed24 May 2022
  • creditUnknown

Introduced: 24 May 2022

CVE-2021-24374  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade automattic/jetpack to version 9.8 or higher.

Overview

Affected versions of this package are vulnerable to Improper Access Control due to the Jetpack Carousel module allowing comments on images in a "carousel" type image gallery, including those from non-published pages/posts. An attacker can leak comments from these non-published entities by exploiting this oversight.

PoC

By changing the "id" parameter of the POST request to a valid media attachment id on a page/post that was not public, it was possible to leak the non-public comments.


http://example.com/wp-admin/admin-ajax.php?action=get_attachment_comments&nonce=4aadefa6ee&id=28&offset=0

References

CVSS Scores

version 3.1