databases/phppgadmin: update to 7.14.3

- add support for postgres15
- fix Authentication Bypass
PR: 268785
MFH: 2023Q1
Security: CVE-2021-3850
Security: https://huntr.dev/bounties/bdf5f216-4499-4225-a737-b28bc6f5801c/

(cherry picked from commit 914d197f6f)
This commit is contained in:
Dirk Meyer 2023-01-08 18:25:32 +01:00
parent 0c61a5ba4f
commit 838734926d
5 changed files with 1194 additions and 40 deletions

View File

@ -1,13 +1,13 @@
PORTNAME= phppgadmin
DISTVERSIONPREFIX= REL_
DISTVERSION= 7-13-0
PORTREVISION= 1
PORTVERSION= 7.14.3
DISTVERSIONPREFIX= v
DISTVERSIONSUFFIX= -mod
CATEGORIES= databases www
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Web Based Postgres Administration
WWW= http://phppgadmin.sourceforge.net/
WWW= https://github.com/ReimuHakurei/phpPgAdmin
LICENSE= GPLv2
@ -15,6 +15,8 @@ NO_ARCH= yes
NO_BUILD= yes
USES= cpe tar:bzip2 php:web,flavors shebangfix
USE_GITHUB= yes
GH_ACCOUNT= ReimuHakurei
WRKSRC= ${WRKDIR}/phpPgAdmin-${DISTVERSION}${DISTVERSIONSUFFIX}
.if !defined(WITHOUT_PHP_DEPENDS)
USE_PHP= pgsql pcre session mbstring

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1604814761
SHA256 (phppgadmin-phppgadmin-REL_7-13-0_GH0.tar.gz) = 8694707ebff7bf4357b2920dacf12344e2c6d62c8143dc0f65794f50756c90fd
SIZE (phppgadmin-phppgadmin-REL_7-13-0_GH0.tar.gz) = 804431
TIMESTAMP = 1673194973
SHA256 (ReimuHakurei-phppgadmin-v7.14.3-mod_GH0.tar.gz) = 1665aa9530c71b65b3997f451acc293e71992173767d89c4ebaafe40b9290697
SIZE (ReimuHakurei-phppgadmin-v7.14.3-mod_GH0.tar.gz) = 1811036

View File

@ -1,14 +0,0 @@
--- libraries/adodb/drivers/adodb-postgres64.inc.php.orig 2020-11-07 06:09:12 UTC
+++ libraries/adodb/drivers/adodb-postgres64.inc.php
@@ -122,6 +122,11 @@ WHERE relkind in ('r','v') AND (c.relname='%s' or c.re
// changes the metaColumnsSQL, adds columns: attnum[6]
}
+ function __construct()
+ {
+ // changes the metaColumnsSQL, adds columns: attnum[6]
+ }
+
function ServerInfo()
{
if (isset($this->version)) return $this->version;

View File

@ -1,11 +0,0 @@
--- all_db.php.orig 2020-11-07 06:09:12 UTC
+++ all_db.php
@@ -199,7 +199,7 @@
echo "\t\t<td class=\"data1\">\n";
echo "\t\t\t<select name=\"formEncoding\">\n";
echo "\t\t\t\t<option value=\"\"></option>\n";
- while (list ($key) = each ($data->codemap)) {
+ foreach ($data->codemap as $key => $value) {
echo "\t\t\t\t<option value=\"", htmlspecialchars($key), "\"",
($key == $_POST['formEncoding']) ? ' selected="selected"' : '', ">",
$misc->printVal($key), "</option>\n";

File diff suppressed because it is too large Load Diff