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 files44
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- AppInfo/
- Command/
- Controller/
- DataCollector/
- Db/
- Events/
- Exceptions/
- Handler/
- Jobs/
- Mapping/
- Migration/
- Notification/
- PagedResults/
- Service/
- Settings/
- SetupChecks/
- User/
- Access.php
- AccessFactory.php
- BackendUtility.php
- Configuration.php
- Connection.php
- ConnectionFactory.php
- FilesystemHelper.php
- GroupPluginManager.php
- Group_LDAP.php
- Group_Proxy.php
- Helper.php
- IGroupLDAP.php
- ILDAPGroupPlugin.php
- ILDAPUserPlugin.php
- ILDAPWrapper.php
- IUserLDAP.php
- LDAP.php
- LDAPProvider.php
- LDAPProviderFactory.php
- LDAPUtility.php
- LoginListener.php
- Proxy.php
- UserPluginManager.php
- User_LDAP.php
- User_Proxy.php
- Wizard.php
- WizardResult.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
apps/user_ldap/lib/WizardResult.php
PHP · 1,071 bytes<?php
/**
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCA\User_LDAP;
class WizardResult {
protected $changes = [];
protected $options = [];
protected $markedChange = false;
/**
* @param string $key
* @param mixed $value
*/
public function addChange($key, $value) {
$this->changes[$key] = $value;
}
public function markChange() {
$this->markedChange = true;
}
/**
* @param string $key
* @param array|string $values
*/
public function addOptions($key, $values) {
if (!is_array($values)) {
$values = [$values];
}
$this->options[$key] = $values;
}
/**
* @return bool
*/
public function hasChanges() {
return (count($this->changes) > 0 || $this->markedChange);
}
/**
* @return array
*/
public function getResultArray() {
$result = [];
$result['changes'] = $this->changes;
if (count($this->options) > 0) {
$result['options'] = $this->options;
}
return $result;
}
}