| Package | Affected versions | Patched versions |
|---|---|---|
| cosenary/instagram | ≤ 2.3 | |
| user pro | ≤ 4.9.32 |
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>
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free