summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2025-02-07 14:29:55 +0800
committerArmin Kuster <akuster808@gmail.com>2025-02-09 07:58:44 -0800
commit880df90c865b57d38f1ff836fe8900c94434322f (patch)
treedb4d54773169b160624cc53738613f264b8de48b
parentb7dc1e8eb72b01595a60367f8fd375625268b8a2 (diff)
downloadmeta-openembedded-880df90c865b57d38f1ff836fe8900c94434322f.tar.gz
phpmyadmin: fix CVE-2025-24529/CVE-2025-24530
CVE-2025-24529: An issue was discovered in phpMyAdmin 5.x before 5.2.2. An XSS vulnerability has been discovered for the Insert tab. Refer: https://nvd.nist.gov/vuln/detail/CVE-2025-24529 CVE-2025-24530: An issue was discovered in phpMyAdmin 5.x before 5.2.2. An XSS vulnerability has been discovered for the check tables feature. A crafted table or database name could be used for XSS. Refer: https://nvd.nist.gov/vuln/detail/CVE-2025-24530 Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-webserver/recipes-php/phpmyadmin/phpmyadmin/CVE-2025-24529.patch36
-rw-r--r--meta-webserver/recipes-php/phpmyadmin/phpmyadmin/CVE-2025-24530.patch42
-rw-r--r--meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.1.3.bb4
3 files changed, 81 insertions, 1 deletions
diff --git a/meta-webserver/recipes-php/phpmyadmin/phpmyadmin/CVE-2025-24529.patch b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin/CVE-2025-24529.patch
new file mode 100644
index 0000000000..4b862649dd
--- /dev/null
+++ b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin/CVE-2025-24529.patch
@@ -0,0 +1,36 @@
1From a8e215c314a98008aab6f3147a409911be73108e Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= <mauricio@mfauth.net>
3Date: Sun, 12 Jan 2025 22:39:06 -0300
4Subject: [PATCH 1/2] Fix XSS vulnerability on Insert page
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Signed-off-by: MaurĂ­cio Meneghini Fauth <mauricio@mfauth.net>
10
11CVE: CVE-2025-24529
12Upstream-Status: Backport [https://github.com/phpmyadmin/phpmyadmin/commit/7355ddff8d1da9453cf43c09a45666157b16103d]
13
14Signed-off-by: Changqing Li <changqing.li@windriver.com>
15---
16 libraries/classes/InsertEdit.php | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/libraries/classes/InsertEdit.php b/libraries/classes/InsertEdit.php
20index abc3c5f..4bde765 100644
21--- a/libraries/classes/InsertEdit.php
22+++ b/libraries/classes/InsertEdit.php
23@@ -2166,8 +2166,8 @@ class InsertEdit
24 } elseif ($trueType === 'binary' || $trueType === 'varbinary') {
25 $special_chars = bin2hex($column['Default']);
26 } elseif (substr($trueType, -4) === 'text') {
27- $textDefault = substr($column['Default'], 1, -1);
28- $special_chars = stripcslashes($textDefault !== false ? $textDefault : $column['Default']);
29+ $textDefault = (string) substr($column['Default'], 1, -1);
30+ $special_chars = htmlspecialchars(stripcslashes($textDefault !== '' ? $textDefault : $column['Default']));
31 } else {
32 $special_chars = htmlspecialchars($column['Default']);
33 }
34--
352.34.1
36
diff --git a/meta-webserver/recipes-php/phpmyadmin/phpmyadmin/CVE-2025-24530.patch b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin/CVE-2025-24530.patch
new file mode 100644
index 0000000000..4e36dbba80
--- /dev/null
+++ b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin/CVE-2025-24530.patch
@@ -0,0 +1,42 @@
1From 76e8b760487139bbfba08b8a6f7fdad40a93ac57 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= <mauricio@mfauth.net>
3Date: Tue, 15 Oct 2024 12:27:22 -0300
4Subject: [PATCH 2/2] Fix unescaped table name when checking tables
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Signed-off-by: MaurĂ­cio Meneghini Fauth <mauricio@mfauth.net>
10
11CVE: CVE-2025-24530
12Upstream-Status: Backport [https://github.com/phpmyadmin/phpmyadmin/commit/23c13a81709728089ff031e5b1c29b5e91baa6a7]
13
14Signed-off-by: Changqing Li <changqing.li@windriver.com>
15---
16 libraries/classes/Table/Maintenance.php | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
18
19diff --git a/libraries/classes/Table/Maintenance.php b/libraries/classes/Table/Maintenance.php
20index 9ed72ef..0247c6e 100644
21--- a/libraries/classes/Table/Maintenance.php
22+++ b/libraries/classes/Table/Maintenance.php
23@@ -7,6 +7,7 @@ namespace PhpMyAdmin\Table;
24 use PhpMyAdmin\DatabaseInterface;
25 use PhpMyAdmin\Index;
26 use PhpMyAdmin\Util;
27+use function htmlspecialchars;
28 use function implode;
29 use function sprintf;
30
31@@ -91,7 +92,7 @@ final class Maintenance
32 continue;
33 }
34
35- $indexesProblems .= sprintf(__('Problems with indexes of table `%s`'), $table);
36+ $indexesProblems .= htmlspecialchars(sprintf(__('Problems with indexes of table `%s`'), $table));
37 $indexesProblems .= $check;
38 }
39
40--
412.34.1
42
diff --git a/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.1.3.bb b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.1.3.bb
index 3f19194391..85a18dfd1e 100644
--- a/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.1.3.bb
+++ b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.1.3.bb
@@ -10,10 +10,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
10SRC_URI = "https://files.phpmyadmin.net/phpMyAdmin/${PV}/phpMyAdmin-${PV}-all-languages.tar.xz \ 10SRC_URI = "https://files.phpmyadmin.net/phpMyAdmin/${PV}/phpMyAdmin-${PV}-all-languages.tar.xz \
11 file://apache.conf \ 11 file://apache.conf \
12 file://CVE-2023-25727.patch \ 12 file://CVE-2023-25727.patch \
13 file://CVE-2025-24529.patch \
14 file://CVE-2025-24530.patch \
13" 15"
14 16
15SRC_URI[sha256sum] = "c562feddc0f8ff5e69629113f273a0d024a65fb928c48e89ce614744d478296f" 17SRC_URI[sha256sum] = "c562feddc0f8ff5e69629113f273a0d024a65fb928c48e89ce614744d478296f"
16 18
17UPSTREAM_CHECK_URI = "https://www.phpmyadmin.net/downloads/" 19UPSTREAM_CHECK_URI = "https://www.phpmyadmin.net/downloads/"
18UPSTREAM_CHECK_REGEX = "phpMyAdmin-(?P<pver>\d+(\.\d+)+)-all-languages.tar.xz" 20UPSTREAM_CHECK_REGEX = "phpMyAdmin-(?P<pver>\d+(\.\d+)+)-all-languages.tar.xz"
19 21