CVE-2019-14470: Cosenary/instagram Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-gcv6-2v9c-rj48
CVSS 6.1
Published
Advisory Summary

CVE-2019-14470 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (General Security Weakness) affecting Cosenary/instagram libraries in the Packagist ecosystem. The issue involves cosenary instagram-php-api contains reflected xss vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2019-14470 at a Glance

CVE Identifier CVE-2019-14470
GHSA Identifier GHSA-gcv6-2v9c-rj48
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification General Security Weakness
Affected Product Cosenary/instagram
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2019-14470

To remediate this vulnerability, upgrade all affected Cosenary/instagram dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

cosenary/instagram fixed: Latest secure release
Upgrade cosenary/instagram to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for cosenary/instagram

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-14470, inspect your project dependencies for Cosenary/instagram:

inspect dependencies for cosenary/instagram

Analyze the terminal output to locate any version of Cosenary/instagram in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Cosenary/instagram, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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](https://github.com/cosenary/Instagram-PHP-API/blob/master/example/success.php#L36 ) error_description parameter. Vulnerable code: ```php 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>`

CVE-2019-14470 Affected Cosenary/instagram Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
cosenary/instagram
Packagist
≤ 2.3

References

Frequently Asked Questions

What is CVE-2019-14470?
CVE-2019-14470 is a security vulnerability in Cosenary/instagram involving Cosenary Instagram-PHP-API contains reflected XSS vulnerability under General Security Weakness.
Which Cosenary/instagram versions are affected?
Affected versions include releases prior to current release patches across affected packages: cosenary/instagram.
What version fixes CVE-2019-14470?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is cosenary/instagram affected?
Yes, cosenary/instagram is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2019-14470?
CVE-2019-14470 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2019-14470?
CVE-2019-14470 is classified under General Security Weakness.
How can I check Packagist dependencies for CVE-2019-14470?
Run the dependency tree command: 'inspect dependencies for cosenary/instagram'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gcv6-2v9c-rj48",
  "modified" : "2023-07-07T13:52:40Z",
  "published" : "2022-05-24T16:55:25Z",
  "aliases" : [ "CVE-2019-14470" ],
  "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](https://github.com/cosenary/Instagram-PHP-API/blob/master/example/success.php#L36\n) error_description parameter.\n\nVulnerable code:\n\n```php\n    if (isset($_GET['error'])) {\n        echo 'An error occurred: ' . $_GET['error_description'];\n    }\n```\n\nProof-of-Concept:\n\n`https://domain.tld/wp-content/plugins/userpro/lib/instagram/vendor/cosenary/instagram/example/success.php?error=&error_description=<PAYLOAD>`",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cosenary/instagram"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-14470"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cosenary/Instagram-PHP-API"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cosenary/Instagram-PHP-API/blob/master/example/success.php#L33-L36"
  }, {
    "type" : "WEB",
    "url" : "https://wpvulndb.com/vulnerabilities/9815"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/47304"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/154206/WordPress-UserPro-4.9.32-Cross-Site-Scripting.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-07T13:52:40Z",
    "nvd_published_at" : "2019-09-04T20:15:00Z"
  }
}