GithubHelp home page GithubHelp logo

polling-repo-continua / cve-2021-21123-poc-google-chrome Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puliczek/cve-2021-21123-poc-google-chrome

0.0 0.0 0.0 79 KB

๐Ÿฑโ€๐Ÿ’ป ๐Ÿ‘ Google Chrome - File System Access API - vulnerabilities reported by Maciej Pulikowski | Total Bug Bounty Reward: $5.000 | CVE-2021-21123 and 5 more...

HTML 100.00%

cve-2021-21123-poc-google-chrome's Introduction

๐Ÿ“ Description

Google Chrome - File System Access API - vulnerabilities reported by Maciej Pulikowski

Total Bug Bounty Reward: $5.000

This is Proof of Concept for:

The main security issue here is the operating system dialog "Save as" launched by Google Chrome, is showing to the user the wrong file extension of downloaded the file. It shows "Save as type: JPEG (.jpg)" but downloads virus.jpg.lnk that can download and run virus.exe by PowerShell.

So it is a kind of spoofing extension of downloaded a file.

The bugs works in Google Chrome 86 and 87 on Windows, Mac, and Linux. Of course, LNK works only on Windows, but we can change it to a different extension on Linux or Mac.

Google Blog posts:

Mentioned bugs are "Reported by Maciej Pulikowski"

๐Ÿ“บ Youtube Proof of Concept

https://www.youtube.com/watch?v=l9swTtaRDNs

PoC Video

Thanks for the thumbs up ๐Ÿ˜€๐Ÿ‘

๐Ÿ‘จโ€๐Ÿ’ป Code PoC

Requirements: Nothing, you just need to run an HTML file in an older version of Google Chrome 86 or 87. If you want to test it with a .lnk file, you have to create FUD "lnkextra.lnk" file, because it is not included.

  • example_showSaveFilePicker.html (The bugs works in Google Chrome 86 and 87. They are patched in 88+)

    CVE-2021-21123, CVE-2021-21129, CVE-2021-21130, CVE-2021-21131, CVE-2021-21141

    Playground of my examples for showSaveFilePicker():

    • Save LNK file and show save as type: JPEG Image (*.jpg)
    • A many of whitespace and fake extensions in the description
    • RTL in description
    • Super long description
    • Many spaces in the extension
    • RTL in extension
    • Extension ends with space
    • Extension ends with a period
    • Save LNK file in a different way
    • EXTRA - Because everything happens in JS we can check if the user's browser is vulnerable
  • example_getFileHandle.html (The bug works in Google Chrome 86, 87, and 88. It is patched in 89+)

    CVE-2021-21172 - getFileHandle() - Save .lnk file to selected folder

๐Ÿ’ป Useful links

๐Ÿค Show your support

Give a โญ๏ธ if you liked the content

โœ”๏ธ Disclaimer

This project can only be used for educational purposes. Using this software against target systems without prior permission is illegal, and any damages from misuse of this software will not be the responsibility of the author.

cve-2021-21123-poc-google-chrome's People

Contributors

puliczek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.