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 files10
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- AbstractBasic.php
- AbstractBearer.php
- AbstractDigest.php
- Apache.php
- BackendInterface.php
- BasicCallBack.php
- File.php
- IMAP.php
- PDO.php
- PDOBasicAuth.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
3rdparty/sabre/dav/lib/DAV/Auth/Backend/PDO.php
PHP · 1,205 bytes<?php
declare(strict_types=1);
namespace Sabre\DAV\Auth\Backend;
/**
* This is an authentication backend that uses a database to manage passwords.
*
* @copyright Copyright (C) fruux GmbH (https://fruux.com/)
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class PDO extends AbstractDigest
{
/**
* Reference to PDO connection.
*
* @var PDO
*/
protected $pdo;
/**
* PDO table name we'll be using.
*
* @var string
*/
public $tableName = 'users';
/**
* Creates the backend object.
*
* If the filename argument is passed in, it will parse out the specified file fist.
*/
public function __construct(\PDO $pdo)
{
$this->pdo = $pdo;
}
/**
* Returns the digest hash for a user.
*
* @param string $realm
* @param string $username
*
* @return string|null
*/
public function getDigestHash($realm, $username)
{
$stmt = $this->pdo->prepare('SELECT digesta1 FROM '.$this->tableName.' WHERE username = ?');
$stmt->execute([$username]);
return $stmt->fetchColumn() ?: null;
}
}