Better HN
topnewbestaskshowjobs
Log inSign up

timo_h

77 karma · joined Apr 20, 2012 (14y ago) · 20 submissions

https://github.com/timoh6
Submissions

1.

Show HN: Procedural Music Workstation in the Browser(manager.kiekko.pro ↗)

9 points · by timo_h · 8mo ago · discuss

comment 3y ago · link · parent

The same principle applies to SHA-512 just the same (much cheaper to attack non-stretched SHA-512 hash than attacking directly the bcrypt hash).

There are both MD5 hashes and SHA-512 hashes lying around, which makes "hash shucking" possible for both of them.

comment 3y ago · link · parent

> When using bcrypt, make sure to use the following algorithm to prevent the leading NULL byte problem. and the 72-character password limit:

> bcrypt(base64(sha-512(password)))

Pre-hashing the password, in this context, without a salt, is susceptible to hash shucking: https://security.stackexchange.com/questions/234794/is-bcryp...

Instead, use:

  bcrypt(base64(sha-512(password + global_salt)))

comment 5y ago · link · parent

Firefox is great on desktop, been my primary browser for 15+ years.

Sadly though, the mobile version (still) lacks support for "pull to refresh" gesture. Other than that, mobile FF is great (privacy features, browser addons...).

5.

Acceleration Attacks on PBKDF2: Or, What Is inside the Black-Box of OclHashcat?(usenix.org ↗)

2 points · by timo_h · 10y ago · discuss

comment 11y ago · link · parent

This was probably the most notorious misuse of scrypt.

Memory usage of scrypt was tuned to take 128KB, which made Litecoin mining ~10 times faster on GPUs than on CPUs.

comment 11y ago · link · parent

Some of this is good advice, but there's a BIG point on the 'Password Storage Cheatsheet' that's linked and referenced by the above article, that I don't think is solid.

I read they recommend to use the both (adaptive hashing and "local parameterization"). As even if you utilize separate device (HSM for example) for encrypting the passwords (I'd encrypt instead HMAC), you should indeed not give up on adaptive hashing.

Here's some good commentary on this by Solar Designer (user solardiz on Reddit): http://www.reddit.com/r/netsec/comments/26d52c/yescrypt_pass...

8.

Prince – Modern password guessing algorithm [pdf](hashcat.net ↗)

58 points · by timo_h · 11y ago · 5 comments

9.

Is infosec a game?(openwall.com ↗)

2 points · by timo_h · 12y ago · discuss

10.

A fast, Cross-VM attack on AES [pdf](eprint.iacr.org ↗)

28 points · by timo_h · 12y ago · 11 comments

11.

PHP Data Encryption Primer(timoh6.github.io ↗)

3 points · by timo_h · 12y ago · discuss

comment 13y ago · link · parent

Before the Breaker 101 course starts, I invite you to take a quick (15 questions) quiz about web application security practices and quirks: http://timoh6.github.io/WebAppSecQuiz/index.html

13.

Web App Sec Quiz: 15 questions about security quirks related to web app dev(timoh6.github.io ↗)

1 points · by timo_h · 13y ago · discuss

comment 14y ago · link · parent

> That's defending against a newly generated rainbow table.

You lost me here. Anyway, the attacker does not need a rainbow table at all to attack against multiple hashes at the price of one.

> That's repeating the first point with different words! It's defending against a pre-generated table. i.e. a rainbow table.

Again, no rainbow tables at all are needed to see if different entries shares a password or not.

About timing attacks, see my earlier comment in this comment chain.

> You should not rely on salts for this. In fact, if your hash is exposed you should assume your salt is also exposed.

I see and agree with your point about "relying on salts", but salts just happens to (as a side-effect probably) mitigate the attack. Remember, your salts are not exposed "as-is" if the attacker manages to fetch the password hash using timing.

comment 14y ago · link · parent

> I don't understand how salts could help against timing attacks, though.

The salt which is unknown/unpredictable (and contains enough entropy) to the attacker makes his offline attack against the hash unfeasible (after he has managed to fetch the password hash from the server using timing leaks). I'm not sure if it is possible to fetch the (whole) hash using timing, because it is not a direct comparison. But anyway, if the attacker managed to do that, now because of "a proper salt" he would have to crack a hash that was composed of, say, 128 bits of salt and 20 bits of the actual password. It is unfeasible because of that 128 bits of salt alone.

comment 14y ago · link · parent

At least, testing passwords against multiple hashes (at the price of one) is impossible. And it is not possible to see if different entries shares a same password (or to see if they have a different password). Also, it (probably unintentionally) mitigates timing attacks when comparing if the entered password matches.

comment 14y ago · link · parent

> But salts don't have to be strictly unique, they only have to be a barrier to rainbow tables.

Rainbow tables are not the only "attack vector" that proper use of salts defeats.

18.

GenPhrase - Easy to memorize random passphrase generator for PHP applications(github.com ↗)

1 points · by timo_h · 14y ago · discuss

19.

TCrypto - Simple and flexible PHP 5.3+ key-value storage library(github.com ↗)

2 points · by timo_h · 14y ago · discuss