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 files5
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- AceConflict.php
- NeedPrivileges.php
- NoAbstract.php
- NotRecognizedPrincipal.php
- NotSupportedPrivilege.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
3rdparty/sabre/dav/lib/DAVACL/Exception/NotRecognizedPrincipal.php
PHP · 843 bytes<?php
declare(strict_types=1);
namespace Sabre\DAVACL\Exception;
use Sabre\DAV;
/**
* If a client tried to set a privilege assigned to a non-existent principal,
* this exception will be thrown.
*
* @copyright Copyright (C) fruux GmbH (https://fruux.com/)
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class NotRecognizedPrincipal extends DAV\Exception\PreconditionFailed
{
/**
* Adds in extra information in the xml response.
*
* This method adds the {DAV:}recognized-principal element as defined in rfc3744
*/
public function serialize(DAV\Server $server, \DOMElement $errorNode)
{
$doc = $errorNode->ownerDocument;
$np = $doc->createElementNS('DAV:', 'd:recognized-principal');
$errorNode->appendChild($np);
}
}