How to use JavaScript to flush the memory of the browser to hide it from memory reading tools esp WinHex?

StackOverflow https://stackoverflow.com/questions/23387359

문제

The POST request on the Login page containing the username and password of the user is stored in the browser memory. The browser's memory can be read using memory-reading tools like WinHex. An adversary with access to the user's open browser, after logout, can thus steal the password from the memory. How can I use JavaScript to flush the memory of the browser or browser-cache?

One option I have is to encrypt passwords, but that is a lengthy process. Can't JavaScript do the job?

도움이 되었습니까?

해결책 2

The best solution would be to use salted hashing technique.

This technique ensures that even if someone reads the memory the password is not visible in clear text. Also, it is impossible to retrieve the password as the attacker would require the salt that was used to hash the password before transmission.

http://palisade.plynt.com/issues/2004Aug/passwords-in-memory/

http://plynt.com/blog/2006/06/sending-salted-hashes-just-got/

다른 팁

You cannot. JavaScript provides no manual memory management features or ability to force clear the user's cache.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top