mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Added CSRF to the application (took in account backwards compatibility)
Mitigated the XSS vulnerabilities reported by HackDefense Advisories for said vulnerabilities can be found here: https://hackdefense.com/publications/cve-2019-18345-davical-caldav-server-vulnerability https://hackdefense.com/publications/cve-2019-18346-davical-caldav-server-vulnerability https://hackdefense.com/publications/cve-2019-18347-davical-caldav-server-vulnerability
This commit is contained in:
1 parent
710bc6cccd
commit
86a8ec5302
6 files changed
+195
-2
No files matched your search
+7
-1
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once('./always.php');
|
||||
require_once('classEditor.php');
|
||||
require_once('classBrowser.php');
|
||||
@@ -25,7 +26,12 @@ require_once('interactive-page.php');
|
||||
$page_elements = array();
|
||||
$code_file = sprintf( 'ui/%s-%s.php', $component, $action );
|
||||
if ( ! @include_once( $code_file ) ) {
|
||||
$c->messages[] = sprintf('No page found to %s %s%s%s', $action, ($action == 'browse' ? '' : 'a '), $component, ($action == 'browse' ? 's' : ''));
|
||||
$c->messages[] = sprintf(
|
||||
'No page found to %s %s%s%s',
|
||||
htmlspecialchars($action),
|
||||
($action == 'browse' ? '' : 'a '), $component,
|
||||
($action == 'browse' ? 's' : '')
|
||||
);
|
||||
include('page-header.php');
|
||||
include('page-footer.php');
|
||||
@ob_flush(); exit(0);
|
||||
|
||||
Reference in new issue
Block a user