GHSA-gcv6-2v9c-rj48MediumCVSS 6.1

Cosenary Instagram-PHP-API contains reflected XSS vulnerability

Published
May 24, 2022
Last Modified
July 7, 2023

🔗 CVE IDs covered (1)

📋 Description

cosenary Instagram-PHP-API (aka Instagram PHP API V2), used in the UserPro plugin through 4.9.32 for WordPress, is vulnerable to cross-site scripting via the example/success.php error_description parameter.

Vulnerable code:

    if (isset($_GET['error'])) {
        echo 'An error occurred: ' . $_GET['error_description'];
    }

Proof-of-Concept:

https://domain.tld/wp-content/plugins/userpro/lib/instagram/vendor/cosenary/instagram/example/success.php?error=&error_description=<PAYLOAD>

🎯 Affected products1

  • composer/cosenary/instagram:<= 2.3

🔗 References (6)