Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2023-4195: Prevent uploading .phps files · Cockpit-HQ/Cockpit@800c05f

PHP Remote File Inclusion in GitHub repository cockpit-hq/cockpit prior to 2.6.3.

CVE
#git#php

Expand Up

@@ -78,7 +78,7 @@

$_sizeAllowed = $max_size ? filesize($files[‘tmp_name’][$i]) < $max_size : true;

// prevent uploading php files

if ($_isAllowed && in_array(strtolower(pathinfo($_file, PATHINFO_EXTENSION)), ['php’, 'phar’, ‘phtml’])) {

if ($_isAllowed && in_array(strtolower(pathinfo($_file, PATHINFO_EXTENSION)), ['php’, 'phar’, 'phtml’, ‘phps’])) {

$_isAllowed = false;

}

Expand Down

Related news

GHSA-xcq3-7pf3-5jvc: Cockpit PHP Remote File Inclusion vulnerability

PHP Remote File Inclusion in GitHub repository cockpit-hq/cockpit prior to 2.6.3. Users may upload php files through the system file upload utility to obtain remote code execution.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907