Skip to content

Comment on Fixing a Buffer Overflow in Unix v4 Like It's 1973parent

Comments

will you overwrite pwbuf when writing past password?

Right.

If so, could you type the same password that’s exactly 100 bytes twice and then hit enter to gain root? With only clobbering one additional byte, of ttybuf?

Almost. You need to type crypt(password) in the part that overflows to pwbuf.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.