Cosenary Instagram-PHP-API contains reflected XSS vulnerability
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases through 2.3 (inclusive)Ecosystem versions | Not recorded |
Version evidence: OSV · GHSA-gcv6-2v9c-rj48
View original version evidence (2 explicit versions)
Original source 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>
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2019-14470
- Source reference github.com/cosenary/Instagram-PHP-API
- Source reference github.com/cosenary/Instagram-PHP-API/blob/master/example/success.php
- Security advisory wpvulndb.com/vulnerabilities/9815
- Public exploit reference www.exploit-db.com/exploits/47304
- Public exploit reference packetstormsecurity.com/files/154206/WordPress-UserPro-4.9.32-Cross-Site-Scripting.html