stable

Clone or download

Read-only

Prevent serialization of a ConcealedString instance

Serializing a ConcealedString means that a secret might end up in clear text somewhere it should not. For example a ConcealedString might be added to the session of a users and sessions might be stored in a remote Redis instance. Part of request #14602: Harden handling of sensitive strings Change-Id: I23246e00297c30088b6f2062f3ad63677c5cf5d7

Modified Files

Name
M src/common/Cryptography/ConcealedString.php +25 −2 Go to diff View file
M tests/phpunit/common/Cryptography/ConcealedStringTest.php +14 −0 Go to diff View file