If you get pw3ned, might want to fix your shell
This is a rather silly POC of a vulnerability in custom shell prompt scripts that I suspect is rather widespread. I noticed when working on a branch that included (for the sake of cuteness) a $
that my prompt that usually includes the branch name had a bunch of gibberish. I suspected the zsh plugin I was using did not properly escape shell metacharacters, so I tried a few more things and landed on this.
How it works:
$(./pw3n)
./pw3n
Fixes:
branch=${BRANCH//[^a-z0-9\/]/-}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4