For anyone who didn't see this when it made the rounds a couple weeks ago:
Good news it only affects the playstation 1 as you can see "export PS1"
the PS2 also was backward compatible so it might work there two.
alias whoami="echo root"
God damn it.. another 9.8 !
alias whoami="echo Groot"
I really need to make a paper on my CVE called money2root (get root access by paying someone to give it to you).
I have one where you raise a support ticket with a justification and it works on like maybe 10% of all systems
Pff. Everyone knows the true hack is bash
$ echo "Access granted."
Access granted.
sh

oh my god
It's JSON Bourne Again SHell
Fuck, it works on my machine. When can we expect a patch?
Have you read the full report?
You can work around the issue by removing the french language pack from your system.
4k remaster ftw
You know the rules, and so do I
Holy crap, didn't expect it to go I to that much detail.
echo "Patch installed."
gork is this tru
Dear god, when combined with terminal2shell this can compromise every Unix-like system ever created.
It all started with prompt2output... Who would have known
Layman explanation :
"PS1" is the primary shell prompt.
So, it is that which the linux operating system displays at the start of each line where you, the user, type a command.
Obtaining "#" as the prompt would normally indicate to the user that the next command is to be accepted as having "root privileges" (thought it could do whatever to the system) ... but in the above case, the "#" doesn't mean that ... nor anything other than : that prompt as been changed.
Ah yes, the linux operating system... It's actually usually Linux distros that display lots of things with colors, other unixes are usually just the hostname with $ or #. Identifies the machine and isn't distracting, just how I like it. Except for the part when I forget which dir I am in, of course.
thank goodness you can customize it
I already found another one!
echo $USER prints my current user name. Once I do USER=root it shows im running as root. And I wasn't even asked for my sudo password! :O :O :O
alias whoami='echo root'
That seems like an adjacent vector, want to coop on the CVE?
Youre going to need a catchy name and a website for it as well. All the big CVEs have a website and a catchy name now.
Let's call it shell2root, as it ~~was~~ is the style at the time.
Pwned again!
You joke but at work our security office mass reset passwords because they saw a list of users in the pwd file. Even after others pointed out it was just a list of usernames not their credentials AND that it couldn't be the actual credentials as we're an AD shop
They would definitely fall for that 😭
Oh my xD
Huh. It is worth bearing in mind not to trust $USER before doing something based on it, though, if that thing is important.
The interesting thing is that bash allows writing this variable. I would've expected it to be readonly for obvious reasons.
USER is just an environment variable in the environment block like any other; even if Bash didn't allow changing it, any other program could.
Right? And while Linux generally seems to let you shoot yourself in your foot if you'd really like to, things like --no-preserve-root mean they do put SOME guardrails out there. lol. $USER seems worth making immutable. heh
Looks like the hacker was exporting your PlayStation 1!!! Lock this place DOWN.
Would you steal a PlayStation?
Neeeerrrrrrds!
So...
PROMPT=$P$G$_#
??
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
- If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.