Title

Authentication bypass with the "redirect" option

Description

Normally, clients are connected to the host(s) specified by the "connect" option after successful authentication and rejected after authentication failure (untrusted client certificate). When the "redirect" option is specified, such connections are supposed to be forwarded to the host(s) specified by "redirect" rather than rejected.

In the affected versions, only the initial connection is redirected to the host(s) specified by "redirect". The subsequent connections established using reused SSL/TLS sessions are always forwarded to the host(s) specified by "connect" as if they were successfully authenticated.

Exploitability

The vulnerability is exploitable under the following conditions:

Impact

This vulnerability bypasses authentication based on client certificates when the "redirect" option is used.

CVSS v2 Score

CVSS v2 Vector: (AV:N/AC:L/Au:N/C:P/I:P/A:N/E:H/RL:OF/RC:C)

Recommendation

Upgrade to stunnel 5.14, or remove the "redirect" option from the configuration file.

Credits

Timeline

Our supporters:
Go to the top