When librelp is built with GnuTLS and a RELP connection
uses TLS with the authentication mode certvalid,
the peer certificate is not validated at all. Any
certificate is accepted, including self-signed certificates
and certificates from an unrelated CA. On a RELP server
(e.g. rsyslog imrelp) any host that can reach
the listener can inject log messages that appear to come
from a trusted sender. On a RELP client (e.g. rsyslog
omrelp) an attacker who can intercept the
connection can pose as the log server and receive the
forwarded logs.
Configurations using the fingerprint or
name authentication modes, no TLS, or the
OpenSSL driver are not affected.