# Exploit Title: Multiple CSRF Remote Code Execution Vulnerability on HelpDEZK 1.1.1 # Date: 05-April-2017 # Exploit Author: @rungga_reksya, @yokoacc, @AdyWikradinata, @dickysofficial, @dvnrcy # Vendor Homepage: http://www.helpdezk.org/ # Software Link: https://codeload.github.com/albandes/helpdezk/zip/v1.1.1 # Version: 1.1.1 # Tested on: Windows Server 2012 Datacenter Evaluation # CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (9.1 - CRITICAL)# CVE: CVE-2017-7446 and CVE-2017-7447 I. Background: HelpDEZk is a powerfull software that manages requests/incidents. It has all the needed requirements to an efficient workflow management of all processes involved in service execution. This control is done for internal demands and also for outsourced services. HelpDEZk can be used at any company's area, serving as an support to the shared service center concept, beyond the ability to log all the processes and maintain the request's history, it can pass it through many approval levels. HelpDEZk can put together advanced managing resources with an extremely easy use. Simple and intuitive screens make the day-by-day easier for your team, speeding up the procedures and saving up a lot of time. It is developped in objects oriented PHP language, with the MVC architecture and uses the templates system SMARTY. For the javascripts, JQUERY is used. II. Description: Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute unwanted actions on a web application in which they're currently authenticated. CSRF attacks specifically target state-changing requests, not theft of data, since the attacker has no way to see the response to the forged request. With a little help of social engineering (such as sending a link via email or chat), an attacker may trick the users of a web application into executing actions of the attacker's choosing. If the victim is a normal user, a successful CSRF attack can force the user to perform state changing requests like transferring funds, changing their email address, and so forth. If the victim is an administrative account, CSRF can compromise the entire web application. HelpDEZK have role for type person: admin = 1 user = 2 operator = 3 costumer = 4 partner = 5 group = 6 III. Exploit: a> The first CSRF Target is: a/admin/home#/person/a (Admin - Records - People & Companies) The guest (no have account) can make admin privilege with CSRF Remote Code Execution. This is script for make account admin:
a> The second CSRF target is: /admin/home#/logos/ (Admin - Config - Logos) If we have minimum low privilege, we can remote code execute to make shell on module logos (Position of Page Header, Login Page and Reports Logo). The HelpDEZK unrestricted file extension but normally access only for admin. If you have low privilege, please choose which one to execute this code (before execute, you shall login into application):a"
aaaa If you have executed and success, check your file on: http://example.com/helpdezk-1.1.1/app/uploads/logos/ and PWN ^_^ http://example.com/helpdezk-1.1.1/app/uploads/logos/login_index.php?cmd=ipconfig IV. Thanks to: - Alloh SWT - MyBoboboy - Komunitas IT Auditor & IT Security Refer: https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF) https://www.owasp.org/index.php/Testing_for_Privilege_escalation_(OTG-AUTHZ-003)http://rungga.blogspot.co.id/2017/04/multiple-csrf-remote-code-execution.html https://github.com/albandes/helpdezk/issues/2 # Iranian Exploit DataBase = http://IeDb.Ir [2017-04-10]