PT-2018-4911 · Web2Py+1 · Web2Py+1

Shaolin

·

Published

2018-02-06

·

Updated

2022-05-14

·

CVE-2016-3957

CVSS v2.0

7.5

High

VectorAV:N/AC:L/Au:N/C:P/I:P/A:P
Name of the Vulnerable Software and Affected Versions web2py versions prior to 2.14.2
Description The issue allows remote attackers to execute arbitrary code by leveraging knowledge of encryption key, potentially through deserialization of session information stored in cookies using the pickle.loads function in gluon/utils.py. Additionally, the sample web application might allow remote attackers to execute arbitrary code via vectors involving use of a hardcoded encryption key when calling the session.connect function. It is also possible for remote attackers to obtain the session cookie key value via a direct request to "examples/simple examples/status", which can be leveraged to execute arbitrary code.
Recommendations For versions prior to 2.14.2, update to version 2.14.2 or later to resolve the issue. As a temporary workaround, consider restricting access to the session.connect function and the examples/simple examples/status endpoint until a patch is available. Avoid using hardcoded encryption keys in the sample web application.

Exploit

Fix

RCE

Deserialization of Untrusted Data

Using Hardcoded Credentials

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2016-3957
GHSA-JR83-VR4J-MP6P
GHSA-Q2RQ-QGCF-M22W
USN-4030-1

Affected Products

Ubuntu
Web2Py