Exploit databaseDownload repository ZIP
GH-8c7f0e4b0e998904a1d6f7dcd99e3e7d
d-xuan/cve-2024-52510
Sources for CVE-2024-52510
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files17
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- AppInfo/
- BackgroundJob/
- Command/
- Controller/
- Events/
- Exceptions/
- Listeners/
- Migration/
- Sabre/
- Trash/
- UserMigration/
- Capabilities.php
- Expiration.php
- Helper.php
- Hooks.php
- Storage.php
- Trashbin.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
apps/files_trashbin/lib/Hooks.php
PHP · 738 bytes<?php
/**
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCA\Files_Trashbin;
class Hooks {
/**
* clean up user specific settings if user gets deleted
* @param array $params array with uid
*
* This function is connected to the pre_deleteUser signal of OC_Users
* to remove the used space for the trash bin stored in the database
*/
public static function deleteUser_hook($params) {
$uid = $params['uid'];
Trashbin::deleteUser($uid);
}
public static function post_write_hook($params) {
$user = \OC_User::getUser();
if (!empty($user)) {
Trashbin::resizeTrash($user);
}
}
}