Homec4science

Store hash of session key

Authored by Jakub Vrana <jakub@vrana.cz> on May 31 2013, 02:30.

Description

Store hash of session key

Summary:
This prevents security by obscurity.
If I have read-only access to the database then I can pretend to be any logged-in user.

I've used PhabricatorHash::digest() (even though we don't need salt as the hashed string is random) to be compatible with user log.

Test Plan:
Applied patch.
Verified I'm still logged in.
Logged out.
Logged in.

$ arc tasks

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D6080

Details

Committed
Jakub Vrana <jakub@vrana.cz>May 31 2013, 02:30
Pushed
aubortJan 31 2017, 17:16
Parents
rPH4295de508fe2: Conpherence - add createthread method
Branches
Unknown
Tags
Unknown

Event Timeline

Jakub Vrana <jakub@vrana.cz> committed rPH32f91557f898: Store hash of session key (authored by Jakub Vrana <jakub@vrana.cz>).May 31 2013, 02:30