logoalt Hacker News

dns_snekyesterday at 5:53 PM2 repliesview on HN

The amount of javascript is really beside the point here. The problem is that privileged users can easily edit the code without strong 2FA, allowing automatic propagation.


Replies

shevy-javayesterday at 6:02 PM

How does 2FA prevent this here?

show 1 reply
j45yesterday at 7:47 PM

It's not, application logic exposed on the client side is always an attack vector for figuring out how it works and how attack vectors could be devised.

It's simply a calculated risk.

How much business and application logic you put in your Javascript is critical.

On your second unrelated comment about Wikipedia needing to use 2FA, there's probably a better way to do it and I hope mediawiki can do it.

show 1 reply