r/programminghorror • u/FlightAffectionate15 • Jul 13 '26
Javascript Found this gem
This company I’m interning at. This one lady asked me to do a review of a website they outsourced. Entire source code sits on the browser. Entire vibe coded by amateurs.
Worse than a honeypot so much an attacker would get diabetes.
No security feature at all. I was able to do privileges escalation.
195
Upvotes


64
u/dreamscached Jul 13 '26
Prod-facing frontend with sourcemaps exposed? Are you sure it's not like, dev server? It'd take some dedication to run what looks like React in prod unminified like that.
34
u/echoAnother Jul 13 '26
Lefting the source maps is no issue. But are they storing perms on local storage? That is the horror.
11
u/bistr-o-math Jul 13 '26
You Hacker!
11
u/MurkyWar2756 echo "Sub Mod" && :(){ :|:& };: Jul 14 '26
Why is
super_adminin lowercase andVISITORis spelledVISITEUR, while the rest of the roles are in English?8
u/Opposite_Mall4685 Jul 13 '26
Where are these permissions used? Are they used to display information? If so, all is gucci.
Are they used to tell the server to do xyz? If so, nothing is gucci.
6
u/1nd160 Jul 14 '26 edited Jul 15 '26
What made you think it’s “vibe coded by amateurs”, do you know that for a fact? Don’t get me wrong - an idiotic prompt can burry you deep, sure, but it’s more believable that this piece has been actually manually coded by some biological robot who didn’t fully understand what they were doing. Claude catches this kind of flaws quite fast and doesn’t do such mistakes on its own. Well, unless being forced to, of course.
5
u/AnArmoredPony Jul 14 '26
of course it's fr*nch
4
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Jul 13 '26
They seriously doing authorization checks on the fucking client?
2
u/Ok_Chemistry_6387 Jul 14 '26
I love that if a role doesn't exist it just defaults to empty. That will never come back to bite you.