POC OF CVE-2022-21970

Overview

CVE-2022-21970

Description

Microsoft Edge (Chromium-based) Elevation of Privilege Vulnerability. This vulnerability allows an attacker to execute javascript code on every host without permission, also an attacker can steal local system files, and also he can manipulate the actions against the machine and result in changing internal developer settings in Microsoft Edge.

  • NOTE: In this example, Microsoft Edge executes a malicious script without problems. This is just a malicious .bat file that reboots the infected machine, and it's only for testing! The attacker can create a malicious file that can take a privileges escalation, malware, spyware, or kernel exploit file and harm seriously your device! Not correctly sanitizing and checking for that what users download on their machines by using a MsEdge!

NOTE after the exploit: A malicious user, or whatever user can execute directly malicious .bat files which are created - generated from this javascript exploit by using MsEdge. ๐Ÿ˜ According to Edge, this file is safe to run and open. ๐Ÿ˜


FAQ

What is the version information for this release?

Microsoft Edge Version Date Released Based on Chromium Version

97.0.1072.55 | 1/6/2022 | 97.0.4692.71

STATUS:

  • Patched and fixed on! Edge-Fix

The next test is checking if this is fully patched! ๐Ÿคซ ๐Ÿ˜› ๐Ÿ˜Ž

Proof and simple browser test MsEdge: Edge is blocking .sys files because they can harm your device:

edge-patch

This proof of concept is shown as to how the MsEdge browser NOT blocking .bat files, and this is a problem.

  • NOTE: A malicious user, or whatever user can execute directly malicious .bat files which are created - generated by using exactly MsEdge and this javascript exploit.

  • This is ridiculous and incorrect sanitizing! ๐Ÿ˜

  • According to Edge, this file is safe to run and open. ๐Ÿ˜

  • This vulnerability allows and stores the vulnerable files on the local storage.

  • No, this is not a problem ๐Ÿ˜ฌ ๐Ÿ˜ ๐Ÿ˜‚ , because this malicious files are generated from Edge ๐Ÿ˜ฌ ๐Ÿ˜ ๐Ÿ˜‚ by using this javascript exploit. ๐Ÿ˜

  • Conclusion: If the user is decided to execute the malicious file directly from the Edge browser, boom the game is over......

  • Screenshot, example:

Screenshot 2022-01-18 122501

In Action:

  1. download the PoC

  2. extracted somewhere

  3. Execute

start msedge C:\Users\user2022\Desktop\ExploitServer\examples\exploit.html

Example from the function():

    $start.onclick = () => {
        const blob = new Blob(['shutdown /r'])
        const fileStream = streamSaver.createWriteStream('pwned.bat', {
          size: blob.size // Makes the percentage visiable in the download
        })

Proof and Exploit:

  • BR Malwareman007
You might also like...

๊ด€์„ธ์ฒญ ๊ฐœ์ธํ†ต๊ด€๊ณ ์œ ๋ถ€ํ˜ธ(PCCC)๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” PoC

pccc-poc ๊ด€์„ธ์ฒญ ๊ฐœ์ธํ†ต๊ด€๊ณ ์œ ๋ถ€ํ˜ธ(PCCC)๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” PoC Installation git clone https://github.com/stevejkang/pccc-poc.git && cd pccc-poc npm install # edit index.ts (fi

Oct 5, 2022

Some of my Genuary peices - starting 2022

Some of my Genuary peices - starting 2022

Genuary-Projects Some of my Genuary pieces - starting 2022 2022 ... Genuary-2022 1st 2nd 3rd ... 1st Draw 10,000 of something. (credit: Michael Lowe)

Jan 7, 2022

Base-mock-api - Repo to storage my fake api's to use in my 2022 projects.

Base Mock API's Project made 100% with JavaScript, with the objective of creating endpoints to use in projects. Prerequisites Before you begin, ensure

Nov 20, 2022

Registrasi LTMPT Otomatis 2022

Registrasi LTMPT Otomatis 2022 Harap ketahui! Repository ini ditujukan untuk membantu mereka yang frustrasi akibat API Kemdikbud error terus / kuota p

Sep 10, 2022

A complete template for 2022 focused on around React, Postgres and various web3 integrations.

A complete template for 2022 focused on around React, Postgres and various web3 integrations.

A complete template for 2022 focused on around React, Postgres and various web3 integrations. You can use the template to make a website, a web application, a hybrid decentralized web application, or even a DAO.

Dec 22, 2022

Shopify Backend Developer Intern Challenge - Summer 2022

Shopify-Backend-Developer-Intern-Challenge Shopify Backend Developer Intern Challenge - Summer 2022 Application Features User can add products. User c

May 14, 2022

An IoT bottle that tracks water consumption. Winner of Best Health Hack, MLH's Best Hardware Hack, and QB3's Best Big Data for the Improvement of Health Care Winner at CruzHacks 2022.

An IoT bottle that tracks water consumption. Winner of Best Health Hack, MLH's Best Hardware Hack, and QB3's Best Big Data for the Improvement of Health Care Winner at CruzHacks 2022.

An IoT bottle that tracks water consumption. Winner of Best Health Hack, MLH's Best Hardware Hack, and QB3's Best Big Data for the Improvement of Health Care Winner at CruzHacks 2022.

Jan 21, 2022

NFT Marketplace 2022 - OpenSea

NFT MARKETPLACE - 2022 ๐Ÿ‡ iv7.dev for a coffee : 0xBE95c56Fe1956804B2E7aD858978A90aF20eeB16 (Nets : BSC, Polygon, ETH) This project was bootstrapped w

Feb 4, 2022

PancakeSwap Prediction Bot [2022]. Make gains passively while running this bot for PancakeSwap or CandleGenie.

PancakeSwap Prediction Bot [2022]. Make gains passively while running this bot for PancakeSwap or CandleGenie.

๐Ÿฅž PancakeSwap Prediction v2 โ€“ 2022 Update ๐Ÿฅž This bot wins the majority of rounds on PancakeSwap & CandleGenie based. This bot survived the beta and

Sep 4, 2022
Owner
Warmonger
CTF PLAYER | Red Team | Bug Bounty Hunter
Warmonger
Challenge for you all to prove that CVE-2022โ€“29622 is not false

CVE-2022โ€“29622: (In)vulnerability Analysis This codebase was created to help security professionals and developers to understand why I think Formidabl

Zsolt Imre 2 Jul 20, 2022
CVE-2022-22629 Proof of Concept

CVE-2022-22629 Proof of concept This post is about the poc for the WebGL bug that was patched in Safari 15.4 security updates. If you want to learn in

PARS Defense 45 Jan 9, 2023
A POC of a Discord.js bot that sends 3D rendering instructions to a Go server through gRPC which responds with the image bytes which are then sent back on Discord.

A POC of a Discord.js bot that sends 3D rendering instructions to a Go server through gRPC which responds with the image bytes which are then sent back on Discord.

Henrique Corrรชa 5 Jan 8, 2022
POC implementation of liveblocks.io obsidian plugin

Obsidian Liveblocks by shabegom A POC implementation of liveblocks.io inside an obsidian plugin. Install Create an account at https://liveblocks.io Gr

Sam 9 Oct 7, 2022
This repository aims to create a POC about authentication and authorization using NestJS, Prisma and JWT.

A progressive Node.js framework for building efficient and scalable server-side applications. Description Nest framework TypeScript starter repository

Vinรญcius Fraga Modesto 2 Nov 2, 2022
Embeddable 3D Rendering Engine with JS, a POC project.

Three.V8 Three.V8 is a proof of concept (POC) of an embedabble 3D rendering engine using JavaScript as user script. Currently, the whole project requi

Fei Yang 24 Nov 29, 2022
Minimal framework for SSG (WIP, PoC)

Frostleaf https://zenn.dev/0918nobita/scraps/64a268583b8463 Development Install tools asdf plugin-add nodejs asdf plugin-add pnpm asdf install Install

0918nobita 7 Jun 4, 2022
POC. Simple plugin-based meta-programming platform on top of Typescript

comp-plugins POC Running: yarn to install dependencies yarn dev to run the script The what The script creates a new typescript compiler instance (prog

Ciobanu Laurentiu 3 Jul 14, 2022
[OUTDATED] [PoC] Magnit bonus card numbers & QR code gen

magnitqr [OUTDATED] [PoC] Magnit bonus card numbers & QR code generator and saver https://rdavydov.github.io/magnitqr/ SPA that was used "in the field

Roman Davydov 6 Oct 25, 2022
๐Ÿงญ Full Stack TypeScript Application Developed as POC

Tractian Challenge POC Full Stack Development Project Browse Back End codeยป - Browse Front End codeยป Built With Table of Contents Deployed Instances I

Nivaldo Farias 1 Nov 20, 2022