Subject: Let's Translate Sympa
List archive
[Let's Translate Sympa] Sympa Security Advisory: 2020-002 Security flaws in setuid wrappers
Chronological Thread
- From: IKEDA Soji <address@concealed>
- To: address@concealed, address@concealed
- Subject: [Let's Translate Sympa] Sympa Security Advisory: 2020-002 Security flaws in setuid wrappers
- Date: Sun, 24 May 2020 20:57:26 +0900 (JST)
Title: Sympa Security Advisory 2020-002 ・ sympa-community/sympa
Updated version of this advisory will be found at here: https://sympa-community.github.io/security/2020-002.html .
2020-002 Security flaws in setuid wrappers
The Sympa Community 2020-05-24 (Initial version)
Synopsis
A fix is available for a vulnerability discovered in Sympa web interface.
Systems Affected
- All versions of Sympa prior to 6.2.56
Problem Description
A vulnerability has been discovered in Sympa web interface by which attacker can execute arbitrary code with root privileges.
Sympa uses two sorts of setuid wrappers:
- FastCGI wrappers
- newaliases wrapper
The FastCGI wrappers
(wwsympa-wrapper.fcgi
and sympa_soap_server-wrapper.fcgi
)
were used to make the web interface running under privileges of a
dedicated user.
The newaliases wrapper (sympa_newaliases-wrapper
) allows Sympa to
update the alias database with root privileges.
Since these setuid wrappers did not clear environment variables,
if environment variables like PERL5LIB
were injected, forged code
might be loaded and executed under privileges of setuid-ed users.
Impact
Attacker can execute arbitrary code with root privileges.
Workarounds
-
Stop using FastCGI wrappers and remove them
-
Modify configuration for HTTP server so that it will not use the wrapper. For detailed instructions see:
- Configure HTTP server: Instruction by HTTP servers https://sympa-community.github.io/manual/install/configure-http-server.html#instruction-by-http-servers
-
Remove executable files of FastCGI wrappers (replace $EXECCGIDIR below: See https://sympa-community.github.io/manual/layout.html):
# cd $EXECCGIDIR # rm wwsympa-wrapper.fcgi # rm sympa_soap_server-wrapper.fcgi
Note that newaliases wrapper may not be removed.
-
-
No workaround has been known about some obsoleted systems requiring FastCGI wrapper, in particular Apache HTTP Server 2.2.x and earlier.
Solution
-
Upgrade to version 6.2.56
- Source distribution: sympa-6.2.56.tar.gz
- Binary distributions: Check release information by distributors.
or, if you have installed Sympa using earlier version of source distribution,
-
Apply a patch to the source, recompile wrappers and reinstall them:
Patch for sympa-6.2 or later: sympa-6.2.54-sa-2020-002-r2.patch
CVE Numbers
None yet.
References
Acknowledgements
The security flaw this advisory describes was reported by Nicolas Chatelain, Sysdream Labs.
Change log
-
2020-05-24
Initial version published.
- [Let's Translate Sympa] Sympa Security Advisory: 2020-002 Security flaws in setuid wrappers, IKEDA Soji, 05/24/2020
Archive powered by MHonArc 2.6.19.