WikiDocs icon indicating copy to clipboard operation
WikiDocs copied to clipboard

Multiple Vulnerabilities in WikiDocs 0.1.18

Open nam3lum opened this issue 3 years ago • 5 comments

CVE-2022-23376 / Multiple reflected XSS vulnerabilities on different pages.

1. (Template.inc.php) - Reflected XSS Injection

First vulnerability in line 47: image Second is in line 210: image XSS directly using url: https://www.wikidocs.it/?search=%3Csvg/onload=%27alert(%22XSS%22);%27%3E

2. (Submit.php) - Reflected XSS Injection

Vulnerability in line 31: image XSS directly using url: https://www.wikidocs.it/submit.php?act=%22});%3C/script%3E%3Csvg/onload=%27alert(%22XSS%22);%27%3E

3. (Index.php) - Reflected Xss Injection:

image

CVE-2022-23375 / Authenticated remote code execution vulnerability

(Index.php) - Image upload, Authenticated Remote Code Execution:

first, log in to the website and click edit button on the right top: image Before upload proccess, we have to create malicious payload image: image name: shell.php.png payload :

<?php echo system($_REQUEST['cmd']); ?>

After that, you have to click image button on top and upload image: image Select malicious file and click upload: image In upload process, change file extension to the PHP in the POST request: image then the browser automatically sends another request to the malicious file: image Just browse it and try to execute some commands: image

Information Disclosure Vulnerability (I did not reserve CVE for this one)

(Functions.inc.php) - Debug mode can be enabled:

Vulnerable lines are between 15-18: image You can get sensitive information using debug mode: image

I hope you wil close these vulnerabilities ASAP.

nam3lum avatar Feb 19 '22 13:02 nam3lum

hi @nam3lum, thanks for the reports. I will provide as soon as possible ..

Zavy86 avatar Feb 21 '22 15:02 Zavy86

In version 0.1.20 I tried to fix the shell bug. Can you check if you can still hack it?

Zavy86 avatar Feb 21 '22 16:02 Zavy86

Actually, your application is more secure right now because it does not accept any extension 😃 image

nam3lum avatar Feb 22 '22 07:02 nam3lum

Ok, can you try now please.. :) v0.1.21

Zavy86 avatar Feb 22 '22 09:02 Zavy86

Parameter for enable and disable debug mode for Information Disclosure Vulnerability. v0.2.1

Zavy86 avatar Feb 22 '22 09:02 Zavy86

xss need to be fixed

https://www.wikidocs.it/?search=%3Csvg/onload=%27alert(%22XSS%22);%27%3E

https://www.wikidocs.it/submit.php?act=%22%7D);%3C/script%3E%3Csvg/onload=%27alert(%22XSS%22);%27%3E

Zavy86 avatar May 04 '23 06:05 Zavy86

fixed in refactored, release version up to 0.5.0

Zavy86 avatar May 04 '23 12:05 Zavy86

@nam3lum

Zavy86 avatar May 10 '23 14:05 Zavy86