GHSA-gcv6-2v9c-rj48

Suggest an improvement
Source
https://github.com/advisories/GHSA-gcv6-2v9c-rj48
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-gcv6-2v9c-rj48/GHSA-gcv6-2v9c-rj48.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gcv6-2v9c-rj48
Aliases
  • CVE-2019-14470
Published
2022-05-24T16:55:25Z
Modified
2024-12-02T05:41:52.983279Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Cosenary Instagram-PHP-API contains reflected XSS vulnerability
Details

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>

Database specific
{
    "nvd_published_at": "2019-09-04T20:15:00Z",
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-07-07T13:52:40Z"
}
References

Affected packages

Packagist / cosenary/instagram

Package

Name
cosenary/instagram
Purl
pkg:composer/cosenary/instagram

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
2.3

Affected versions

v2.*

v2.2
v2.3