Closed (duplicate)
Project:
Drupal core
Version:
9.5.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2015 at 10:32 UTC
Updated:
13 Jul 2023 at 14:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
znerol commentedI left two instances unchanged:
PhpassHashedPassword.phpimplements a proven algorithm based a gazillion rounds of hashing. That mechanism is considered to be secure.update.module / _update_manager_unique_identifier()because that would change how sites are registered on d.o. Also the resulting hash is truncated to 8 characters which helps preventing that thehash_saltcan be attacked.Comment #3
alexpottI think it is worth making a helper method here. To create an apc key with a namespace. Something like:
Comment #4
znerol commentedComment #6
znerol commentedComment #7
fabianx commentedRTBC, looks great.
I shortly pondered the usage of hash_hmac() but then it looked like it was used for something else and with a prefix security was still okay ...
Thanks for fixing!
Comment #8
damien tournoud commented^ Why are we even doing that? There is no security issue here, we could use straight the salt for what I care.
^ Using the hash salt sounds wrong here. It's either the private key, or the hash salt, it should really not be both at the same time (I realize we do the same thing in
drupal_get_token(), but it is equally wrong).As the name implied, the hash salt was never meant to be super secret. It was just meant as a way to ensure that having a dump of the database by itself is not sufficient to attack a live site.
Comment #9
fabianx commented#8: Can you help how this should work? What is secure, what is not?
And is there any documentation explaining this in some detail?
Comment #10
pwolanin commentedProbably needs a re-roll, and better issue summary
Comment #12
jhedstromPatch no longer applies, also this is tagged for an IS update.
Comment #20
larowlanI reviewed this as part of Bug Smash Initiative triaging.
#2474909: Allow Simpletest to use the same APC user cache prefix so that tests can share the classmap and other cache objects made the required changes for APC caching.
But we're still using the same
hash()instead ofhash_hmac()in the PermissionsHashGenerator.Question is, is this still worth doing?
@znerol thoughts?
If not, I think this can be closed as a duplicate of #2474909: Allow Simpletest to use the same APC user cache prefix so that tests can share the classmap and other cache objects
Comment #24
kristen polAs part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)". This issue was marked "Postponed (maintainer needs more info)" two years ago.
Since @larowlan requested feedback in #20 yet did not receive any, I'm marking this issue "Closed (duplicate)" per that comment. Feel free to reopen this issue and provide more information if warranted.
Thanks!
Comment #25
larowlanLeaving this one open if we can, keen to hear thoughts from znerol
Comment #27
smustgrave commentedRe closing since there hasn't been a follow up in a year.