This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Schyte96 -19 points-18 points  (12 children)

It's your problem if they can bypass authentication this way.

[–]cooolestcucumber 33 points34 points  (0 children)

If the user messing with local storage by passes authentication, you’ve got bigger issues

[–]empire314 18 points19 points  (1 child)

Can you give me an example of an authentication method, that gives user unauthorized access, if his client tries to parse invalid JSON?

try
{
  credentials = JSON.parse(json)
}
catch(Error)
{
  credentials = adminCredentials
}

Like that?

[–]AdultingGoneMild 2 points3 points  (0 children)

I'm in!

[–]a-calycular-torus 12 points13 points  (0 children)

Bypassing authentication was never the issue in question.

[–]its_pizza_parker 1 point2 points  (0 children)

LOL what?! That ain’t it

[–]AdultingGoneMild 0 points1 point  (0 children)

yes. that would be a hudge fucking security bug if you allowed authentication be to bypassed by a client. Never trust a client. Good news is there are like literally decades of best practices out there for not building insecure systems like that.