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 files29
d-xuan/cve-2024-52510Revision 6c0d89756ae0
- ↑..Parent directory
- Attribute/
- Events/
- Template/
- ContentSecurityPolicy.php
- DataDisplayResponse.php
- DataDownloadResponse.php
- DataResponse.php
- DownloadResponse.php
- EmptyContentSecurityPolicy.php
- EmptyFeaturePolicy.php
- FeaturePolicy.php
- FileDisplayResponse.php
- ICallbackResponse.php
- IOutput.php
- JSONResponse.php
- NotFoundResponse.php
- ParameterOutOfRangeException.php
- RedirectResponse.php
- RedirectToDefaultAppResponse.php
- Response.php
- StandaloneTemplateResponse.php
- StreamResponse.php
- StrictContentSecurityPolicy.php
- StrictEvalContentSecurityPolicy.php
- StrictInlineContentSecurityPolicy.php
- TemplateResponse.php
- TextPlainResponse.php
- TooManyRequestsResponse.php
- ZipResponse.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lib/public/AppFramework/Http/StrictInlineContentSecurityPolicy.php
PHP · 1,072 bytes<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\AppFramework\Http;
/**
* Class StrictInlineContentSecurityPolicy is a simple helper which allows applications to
* modify the Content-Security-Policy sent by Nextcloud. Per default only JavaScript,
* stylesheets, images, fonts, media and connections from the same domain
* ('self') are allowed.
*
* Even if a value gets modified above defaults will still get appended. Please
* note that Nextcloud ships already with sensible defaults and those policies
* should require no modification at all for most use-cases.
*
* This is a temp helper class from the default ContentSecurityPolicy to allow slow
* migration to a stricter CSP. This does not allow inline styles.
*
* @since 14.0.0
* @deprecated 17.0.0
*/
class StrictInlineContentSecurityPolicy extends ContentSecurityPolicy {
/**
* @since 14.0.0
*/
public function __construct() {
$this->inlineStyleAllowed = false;
}
}