[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EQDKP plus Cross Site Scripting and Bypass file extension


I have found a vulnerability in the EQDKP Plus.
More precisely in the plugin mediacenter.

Because of incorrectly checks the file extension
it is possible to upload the "htm" file and execute
XSS attack.

But with some restrictions. The plugin checks the contents for tags:

function check_content($fieldname){
$disallowed = "body|head|html|img|plaintext|a href|pre|script|table|title|php";
$disallowed_content = explode('|', $disallowed);
if (empty($disallowed_content))
		return false;

To get around this, you can use the Next design:
<iframe src="http://yandex.ru"; style="display: none" onload="alert('XSS')">

After downloading the file to the server, you can find the file on request:
http://site.com/dkp/plugins/mediacenter/index.php?mode=ajax&id = [ID].
[ID] - simple exhaustive search.


Vulnerable versions: <=

 Sorry for my bad english. :)

 Best Regards,