rsyslog
Jul 04, 2009 - 11:45 AM
Professional Support
Custom written rsyslog.conf? Maintenance Contract?

rsyslog professional services



Donate!
Satisfied with rsyslog?

Donate and help keep
the project alive!

Rainer's Blog

Login




 


 Log in Problems?
 New User? Sign Up!

Online
There are 24 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

$AllowedSender not honored

A primitive way of access control is offered in rsyslog via the $AllowedSender configuration directive. It permits the operator to specify hosts from which messages are being accepted. If the directive is not specified, messages from all hosts are accepted. If it is, the set is limited to those senders that match the configured criteria (this can be network addresses or host name). Access control can be configured for UDP- based and TCP-based protocols independently.

Note that this directive may be used to simplify firewall setup, where the firewall permits incoming traffic from all remote machines on the port in question. Then rsyslog ACLs are used to control who is actually permitted. The down-side of this approach is that the packets reach rsyslog and any vulnerability in it can be exploited. Please note that UDP addresses can easily be spoofed (though thankfully not as easy any longer on the public Internet thanks to more careful configuration on most ISP's side). So an IP-based access control does not work very well for UDP (neither at the firewall nor at the rsyslog level - but the firewall may have more options at hand, given its comparatively broad knowledge of the perimeter).

Unfortunately, one vulnerability has been found in rsyslog's ACL handling. Due to a coding error in the modularization effort, the $AllowedSender directive is no longer honored but silently accepted. As such, rsyslog-based access control via $AllowedSender is not working and messages from every sender will be accepted by rsyslog. Most importantly, this could lead to misleading log entries or a remote DoS, by a malicious sender simply flooding the system logs with messages until the system runs out of disk space.

This problem was discovered due to a user bug report early this week and has immediately been addressed. Immediate notice has been sent to the rsyslog mailing list as well as mitigation strategies and patches as they came up.

The versions affected are rsyslog 3.12.1 to 3.20.0, 4.1.0 and 4.1.1. The v2-stable branch is not affected. The vulnerability can be fully mitigated by moving the access control to the firewall level. This is recommended in any case, not just as a mitigation (see reasoning above).

We also have now released fixed version of rsyslog. These are available here:



Users, which use $AllowedSender are urged either to mitigate the issue or update to the appropriate release. Note that rsyslog versions prior to 3.20.0 are no longer officially supported. The proper procedure here is to upgrade to the recent v3-stable branch.

For those interested in the root cause of this issue, please read Rainer's blog post "root cause of security issue in rsyslog".

Send this story to someone  Printer-friendly page (2047 Reads)  
 rsyslog Sponsors
 
Functionality looking for Sponsors
rsyslog sponsoring
Click here for more information


 Search
 
Google

 Last Forum Posts
 · Re: Rhel 5.3 x64
I was having the same problem...after poking around,Looks like rh ...
· Re: TLS stops sending messages
It should be sufficient to remove the gtls driver directive. Then ...
· Re: fromhost property is not resolved wi ...
I think this is currently not possible, at least not without code ...
· fromhost property is not resolved with r ...
Hi,we are currently using udp for sending logs from rsyslog clien ...
· TLS stops sending messages
Hi folks,After a period of time, rsyslog either stops receiving ( ...
· Re: Rhel 5.3 x64
This looks like the software got installed to the wrong pathes an ...
· Re: stop remote messages being written t ...
Hi, I am having the same issue. Here are the contents of /etc/rs ...
· Rhel 5.3 x64
I tried with the default rsyslog which is 2.0.6 on rhel5.3 and th ...

:: Syndication: ::
Page created in 0.0793550014496 seconds.