Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
| Tasklist |

FS#57747 - [elinks] does not verify the authenticity of SSL certificates

Attached to Project: Community Packages
Opened by Martin (greencopper) - Wednesday, 07 March 2018, 21:19 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 08 March 2018, 14:58 GMT
Task Type Bug Report
Category Security
Status Assigned
Assigned To Kyle Keen (keenerd)
Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

As mentioned in a repport on the OpenBSD mailing list, Elinks doesn't verify server certificate when connecting to HTTPS websites. This behavior doesn't comply with section 3.2 of IETF RFC5280: Certification Paths and Trust.

https://marc.info/?l=elinks-dev&m=148896031830582&w=2

I have tested and verified the issue with elinks in Arch Linux.

To protect users against malicious websites using fake certificates and potential man-in-the-middle attacks, certificate verification has to be enabled by default.

Additional info:

elinks 0.13-19

Steps to reproduce:

1. Create a self signed certificate.

$ openssl genrsa -out ./privkey.pem 2048
$ openssl req -new -sha256 -days 1 -subj '/CN=localhost' -x509 -key ./privkey.pem -out cert.crt

2. Serve a test page for the self signed certificate.

$ openssl s_server -key ./privkey.pem -cert ./cert.crt -HTTP -www

Openssl test server will listen on 0.0.0.0:4433, accepting HTTP
requests.

3. Open another terminal and use Elinks to connect to the test server.

$ elinks https://localhost:4433/

4. Elinks will happily connect to the test server without notifying
users about invalid or self signed certificate. Refer to the behavior of
another browsers when connecting to the test server as comparison.
This task depends upon

Loading...