Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20030330095708.GA11743@openwall.com>
Date: Sun, 30 Mar 2003 13:57:08 +0400
From: Solar Designer <solar@...nwall.com>
To: popa3d-users@...ts.openwall.com
Subject: Re: virtual.c another question

On Sun, Mar 30, 2003 at 01:29:38PM +0600, Boris Kovalenko wrote:

Hi,

> virtual.c/virtual_userpass
> fail = 0;
> if (!is_valid_user(user)) {
>      user = "INVALID";
>      fail = 1;
> }
> .... many other code
> 
> Why to run other code if we already know that user is invalid? Why lstat 
> directory and try to open file for this "INVALID" user?

This is to reduce information leaks via timing.

-- 
/sd

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.