> Hi Mike,
>
> On Mon, Mar 14, 2005 at 12:34:58PM -0500, [EMAIL PROTECTED] wrote:
>> >    For instance, I can connect to your service, and fork off
>> >    some setuid root application, with stderr connected to that
>> >    socket. Any error message the application prints will be arrive
>> >    with uid 0. If I manage to make that message appear valid to you,
>> >    your daemon will accept any future input unquestioned.
>> >
>>
>> Interesting attack, although I doubt the setuid program would be
>> attaching
>> an SCM_CREDENTIALS to it's stderr writes.  I'll fix it up to check
>> credentials on all packets nevertheless.
>
> The application doesn't have to pass them explicitly. They'll be
> attached automatically by the kernel.

Ah. Didn't know that.  This makes verifying each request much more critical.

Mike Waychison

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to