Better HN
topnewbestaskshowjobs
Log inSign up

ethanlew-is

23 karma · joined Mar 16, 2023 (3y ago) · 4 submissions

Submissions

comment 7mo ago · link · parent

Gas Town has always struck me as more of a performance art piece than a tool that was actually meant to be used, even among the recent hyped AI projects. If you’re using it for real, what are you using it for?

comment 2y ago · link · parent

Definitely agree

All of the examples added in a single commit, with no changes afterward

“Passable” examples all use a library of some kind

Thorough comments that are mostly irrelevant

comment 2y ago · link · parent

A few others that jump out to me:

* 04-AntiForgeryToken would not provide any actual protection against CSRF (there are a few ways to do it, but all at minimum require 1) the token to be generated by the server and 2) a way for the server to compare against a known good value, either from its session DB or by "double-submitting" the token [0]).

* 18-SecureWebStorage encrypts the value without including an authentication tag, meaning it can likely be fully decrypted or modified by the user (lookup a Vaudenay attack or try out https://cryptopals.com/ if you're curious there)

Those are the ones I have specific experience with and looked at first, so maybe the more frontend-oriented examples are better?

[0] https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Re...

comment 2y ago · link · parent

For anyone thinking of using this, at least a few of these examples are fundamentally broken. There may still be useful info here, but as-is it is dangerous to advertise this to new developers who aren't able to discern the good from the bad.

One example for OP: you should not be representing yourself as a security expert if you're recommending hashing passwords using SHA-256 in the browser [0].

[0] https://github.com/rajamsrgit/JavaScriptSecurityCookbook/blo...