Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828581 (CVE-2021-40313, CVE-2021-40678, CVE-2021-40882, CVE-2021-45357, CVE-2022-24620, CVE-2022-26266, CVE-2022-26267) - www-apps/piwigo: SQL injections, XSS
Summary: www-apps/piwigo: SQL injections, XSS
Status: IN_PROGRESS
Alias: CVE-2021-40313, CVE-2021-40678, CVE-2021-40882, CVE-2021-45357, CVE-2022-24620, CVE-2022-26266, CVE-2022-26267
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
URL: https://github.com/Piwigo/Piwigo/issu...
Whiteboard: ~4 [??]
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-08 19:37 UTC by John Helmert III
Modified: 2023-05-12 14:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-12-08 19:37:27 UTC
CVE-2021-40313:

Piwigo v11.5 was discovered to contain a SQL injection vulnerability via the parameter pwg_token in /admin/batch_manager_global.php.


Not sure about a fix, asked for clarification in the issue.
Comment 1 Bernard Cafarelli gentoo-dev 2021-12-14 10:21:16 UTC
Waiting on the upstream discussion to progress indeed, as it mentions 11.5 explicitely it may just end up being a cleanup bug (we have 12.x versions in tree)
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-12-15 00:43:21 UTC
CVE-2021-40882 (https://github.com/Piwigo/Piwigo/issues/1477):

A Cross Site Scripting (XSS) vulnerability exists in Piwigo 11.5.0 via the system album name and description of the location.
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-02-10 23:30:21 UTC
CVE-2021-45357 (https://github.com/Piwigo/Piwigo/issues/1582):

Cross Site Scripting (XSS) vulnerability exists in Piwigo 12.x via the pwg_activity function in include/functions.inc.php.
Comment 4 Larry the Git Cow gentoo-dev 2022-02-20 15:51:37 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99818f7a433a75e3350b05432b90104eff9d3556

commit 99818f7a433a75e3350b05432b90104eff9d3556
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2022-02-20 15:50:47 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2022-02-20 15:50:47 +0000

    www-apps/piwigo: clean old versions
    
    https://github.com/Piwigo/Piwigo/issues/1582 mentions all versions
    <=12.1.0 have a XSS vulnerability
    
    Bug: https://bugs.gentoo.org/828581
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 www-apps/piwigo/Manifest                |  3 ---
 www-apps/piwigo/piwigo-11.5.0-r1.ebuild | 44 ---------------------------------
 www-apps/piwigo/piwigo-12.0.0.ebuild    | 44 ---------------------------------
 www-apps/piwigo/piwigo-12.1.0.ebuild    | 44 ---------------------------------
 4 files changed, 135 deletions(-)
Comment 5 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-02-24 20:54:57 UTC
CVE-2022-24620 (https://github.com/Piwigo/Piwigo/issues/1605):

Piwigo version 12.2.0 is vulnerable to stored cross-site scripting (XSS), which can lead to privilege escalation. In this way, admin can steal webmaster's cookies to get the webmaster's access.
Comment 6 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-03-19 02:08:26 UTC
CVE-2022-26266 (https://github.com/JCCD/Vul/blob/main/Piwigo_12.2.0_SQLinject.md):

Piwigo v12.2.0 was discovered to contain a SQL injection vulnerability via pwg.users.php.

CVE-2022-26267 (https://github.com/JCCD/Vul/blob/main/Piwigo_12.2.0_InforMation_Disclosure.md):

Piwigo v12.2.0 was discovered to contain an information leak via the action parameter in /admin/maintenance_actions.php.
Comment 7 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-06-14 17:15:02 UTC
CVE-2021-40678 (https://github.com/Piwigo/Piwigo/issues/1476):

In Piwigo 11.5.0, there exists a persistent cross-site scripting in the single mode function through /admin.php?page=batch_manager&mode=unit.
Comment 8 Bernard Cafarelli gentoo-dev 2023-05-12 14:55:15 UTC
Still hard to track the vulnerabilities in it, just updating status as many of the mentioned versions have been dropped for a while (and now only 13.7.0 will be in tree for #847979)