Skip to content

Commit 0bca199

Browse files
committed
Sanitize more functions from the encryption app
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
1 parent 3d1fb04 commit 0bca199

File tree

1 file changed

+57
-1
lines changed

1 file changed

+57
-1
lines changed

lib/private/Log/ExceptionSerializer.php

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@
3434
use OC\Security\IdentityProof\Key;
3535
use OC\Setup;
3636
use OC\SystemConfig;
37+
use OCA\Encryption\Controller\RecoveryController;
38+
use OCA\Encryption\Controller\SettingsController;
39+
use OCA\Encryption\Crypto\Crypt;
40+
use OCA\Encryption\Crypto\Encryption;
41+
use OCA\Encryption\Hooks\UserHooks;
42+
use OCA\Encryption\KeyManager;
43+
use OCA\Encryption\Session;
3744

3845
class ExceptionSerializer {
3946
public const methodsWithSensitiveParameters = [
@@ -118,7 +125,56 @@ public function __construct(SystemConfig $systemConfig) {
118125
],
119126
\RedisCluster::class => [
120127
'__construct'
121-
]
128+
],
129+
Crypt::class => [
130+
'symmetricEncryptFileContent',
131+
'encrypt',
132+
'generatePasswordHash',
133+
'encryptPrivateKey',
134+
'decryptPrivateKey',
135+
'isValidPrivateKey',
136+
'symmetricDecryptFileContent',
137+
'checkSignature',
138+
'createSignature',
139+
'decrypt',
140+
'multiKeyDecrypt',
141+
'multiKeyEncrypt',
142+
],
143+
RecoveryController::class => [
144+
'adminRecovery',
145+
'changeRecoveryPassword'
146+
],
147+
SettingsController::class => [
148+
'updatePrivateKeyPassword',
149+
],
150+
Encryption::class => [
151+
'encrypt',
152+
'decrypt',
153+
],
154+
KeyManager::class => [
155+
'checkRecoveryPassword',
156+
'storeKeyPair',
157+
'setRecoveryKey',
158+
'setPrivateKey',
159+
'setFileKey',
160+
'setAllFileKeys',
161+
],
162+
Session::class => [
163+
'setPrivateKey',
164+
'prepareDecryptAll',
165+
],
166+
\OCA\Encryption\Users\Setup::class => [
167+
'setupUser',
168+
],
169+
UserHooks::class => [
170+
'login',
171+
'postCreateUser',
172+
'postDeleteUser',
173+
'prePasswordReset',
174+
'postPasswordReset',
175+
'preSetPassphrase',
176+
'setPassphrase',
177+
],
122178
];
123179

124180
private function editTrace(array &$sensitiveValues, array $traceLine): array {

0 commit comments

Comments
 (0)