Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
please reopen ticket 15567
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  19 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Wim Feijen  
View profile  
 More options Sep 13 2011, 12:07 pm
From: Wim Feijen <wimfei...@gmail.com>
Date: Tue, 13 Sep 2011 09:07:53 -0700 (PDT)
Local: Tues, Sep 13 2011 12:07 pm
Subject: please reopen ticket 15567
Hello,

When a user tries to login on the admin, with correct username &
password, but is_staff is set to False, the error message is
misleadingly wrong:

"Please enter a correct username and password. Note that both fields
are case-sensitive."

Ticket 15567 deals with this and is currently marked as wont fix.
After a lenghty discussion on

http://groups.google.com/group/django-developers/browse_thread/thread...

the general consensus seems in favor of changing the error message and
thus to re-open the ticket.

Could the ticket please be reopened?

Thanks,

Wim

Ticket 15567:
https://code.djangoproject.com/ticket/15567

A patch:
https://code.djangoproject.com/attachment/ticket/16834/admin_not_allo...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Babatunde Akinyanmi  
View profile  
 More options Sep 13 2011, 1:05 pm
From: Babatunde Akinyanmi <tundeba...@gmail.com>
Date: Tue, 13 Sep 2011 18:05:21 +0100
Local: Tues, Sep 13 2011 1:05 pm
Subject: Re: please reopen ticket 15567
+1

On 9/13/11, Wim Feijen <wimfei...@gmail.com> wrote:

--
Sent from my mobile device

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Apolloner  
View profile  
 More options Sep 13 2011, 1:12 pm
From: Florian Apolloner <f.apollo...@gmail.com>
Date: Tue, 13 Sep 2011 10:12:55 -0700 (PDT)
Local: Tues, Sep 13 2011 1:12 pm
Subject: Re: please reopen ticket 15567

-1, This would leak information about the users (But I am sure that's
discussed at length in the other threads)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cal Leeming [Simplicity Media Ltd]  
View profile  
 More options Sep 13 2011, 1:16 pm
From: "Cal Leeming [Simplicity Media Ltd]" <cal.leem...@simplicitymedialtd.co.uk>
Date: Tue, 13 Sep 2011 18:16:52 +0100
Local: Tues, Sep 13 2011 1:16 pm
Subject: Re: please reopen ticket 15567

+1, if the user/pass is entered, that user is entitled so know what its own
permissions are.

The error should give "You have insufficient access to this page" or
something like that.

Cal

On Tue, Sep 13, 2011 at 6:12 PM, Florian Apolloner <f.apollo...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Schotsmans  
View profile  
 More options Sep 13 2011, 1:18 pm
From: Jan Schotsmans <enlight...@gmail.com>
Date: Tue, 13 Sep 2011 19:18:45 +0200
Local: Tues, Sep 13 2011 1:18 pm
Subject: Re: please reopen ticket 15567

I can imagine several situation where you would like the user not to know
that, until they talk to an administrator.

-1 for me too, both giving away user info and giving info to the user that
would be better given by a talk to an administrator.

2011/9/13 Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flávio Amieiro  
View profile  
 More options Sep 13 2011, 1:23 pm
From: Flávio Amieiro <flavioamie...@gmail.com>
Date: Tue, 13 Sep 2011 14:23:03 -0300
Local: Tues, Sep 13 2011 1:23 pm
Subject: Re: please reopen ticket 15567
On Tue, Sep 13, 2011 at 2:16 PM, Cal Leeming [Simplicity Media Ltd]

<cal.leem...@simplicitymedialtd.co.uk> wrote:
> +1, if the user/pass is entered, that user is entitled so know what its own
> permissions are.
> The error should give "You have insufficient access to this page" or
> something like that.

The thing is: if someone does a brute force attack on '/admin/' and
gets this message back, they know there's a user with that
login/password in the system. Since brute force attacks using common
login/password pairs in this kinds of urls is so common, I think this
exposes your user more than necessary.

-1


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Jenkins  
View profile  
 More options Sep 13 2011, 1:24 pm
From: Adam Jenkins <emperorce...@gmail.com>
Date: Tue, 13 Sep 2011 12:24:51 -0500
Local: Tues, Sep 13 2011 1:24 pm
Subject: Re: please reopen ticket 15567
+1 on making the error say more than incorrect username/password. That
is confusing. In regards to leaking information about the user. The
error message in general could be changed to something like this, of
course with better wording:

"Username and password incorrect or access to this page restricted".

The current status is that we are telling the user something this is
incorrect. I've actually run into this situation before where I had a
user reset their password a few times before coming to me.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wim Feijen  
View profile  
 More options Sep 13 2011, 1:42 pm
From: Wim Feijen <wimfei...@gmail.com>
Date: Tue, 13 Sep 2011 10:42:24 -0700 (PDT)
Local: Tues, Sep 13 2011 1:42 pm
Subject: Re: please reopen ticket 15567
Hi, thanks for your quick responses!

Flavio, Jan and Florian, it only "gives away information" when an
attacker guesses both the username and the password right.

But if he can guess those right, he could already access the users
information using the normal login! So giving this message does not
change the danger. On the other hand, it would prevent lots of
confusion.

But we are repeating arguments here, so could you please read:

http://groups.google.com/group/django-developers/browse_thread/thread...

before responding?

Thanks!

Wim

On 13 sep, 19:23, Flávio Amieiro <flavioamie...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Babatunde Akinyanmi  
View profile  
 More options Sep 13 2011, 1:21 pm
From: Babatunde Akinyanmi <tundeba...@gmail.com>
Date: Tue, 13 Sep 2011 18:21:38 +0100
Local: Tues, Sep 13 2011 1:21 pm
Subject: Re: please reopen ticket 15567
+1 again.
If a correct username and password combination are given, the person
submitting the credentials should know that he doesn't have access
just like cal pointed out. Its unfair and frustrating to say that the
combination is wrong

On 9/13/11, Cal Leeming [Simplicity Media Ltd]

--
Sent from my mobile device

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anssi Kääriäinen  
View profile  
 More options Sep 13 2011, 2:27 pm
From: Anssi Kääriäinen <anssi.kaariai...@thl.fi>
Date: Tue, 13 Sep 2011 11:27:47 -0700 (PDT)
Local: Tues, Sep 13 2011 2:27 pm
Subject: Re: please reopen ticket 15567
On Sep 13, 8:24 pm, Adam Jenkins <emperorce...@gmail.com> wrote:

> +1 on making the error say more than incorrect username/password. That
> is confusing. In regards to leaking information about the user. The
> error message in general could be changed to something like this, of
> course with better wording:

> "Username and password incorrect or access to this page restricted".

+1. This solves the problem nicely. the login does not leak
information and the error message is correct.

 - Anssi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Apolloner  
View profile  
 More options Sep 13 2011, 3:02 pm
From: Florian Apolloner <f.apollo...@gmail.com>
Date: Tue, 13 Sep 2011 12:02:01 -0700 (PDT)
Local: Tues, Sep 13 2011 3:02 pm
Subject: Re: please reopen ticket 15567

Hi,

On Tuesday, September 13, 2011 7:42:24 PM UTC+2, Wim Feijen wrote:

> Flavio, Jan and Florian, it only "gives away information" when an
> attacker guesses both the username and the password right.

No! Assume the admin view is the only login view in your project (since it
only consists of the admin or whatever), then if the attacker guesses the
correct username/password he knows that the user/password is valid (if we
take your approach) and doesn't need to try other passwords since you told
him he is no admin… Given the current state he never can make that
assumptions and might try further with the same user.

> So giving this message does not
> change the danger. On the other hand, it would prevent lots of
> confusion.

You assume that there is another login! Now you might say that my example is
a bit obscure, but we do have some public sites with no admin which are
managed by a dedicated admin instance (which has to be public [in the sense
of reachable from everywhere] due to customer requests). So it does decrease
security for us… I understand your point, but please don't assume that your
proposed change can't leak information!

Cheers,
Florian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Egges  
View profile  
 More options Sep 13 2011, 3:05 pm
From: Paul Egges <mountainp...@gmail.com>
Date: Tue, 13 Sep 2011 13:05:40 -0600
Local: Tues, Sep 13 2011 3:05 pm
Subject: Re: please reopen ticket 15567

On Tue, Sep 13, 2011 at 12:27 PM, Anssi Kääriäinen
<anssi.kaariai...@thl.fi>wrote:

> On Sep 13, 8:24 pm, Adam Jenkins <emperorce...@gmail.com> wrote:
> > +1 on making the error say more than incorrect username/password. That
> > is confusing. In regards to leaking information about the user. The
> > error message in general could be changed to something like this, of
> > course with better wording:

> > "Username and password incorrect or access to this page restricted".

> +1. This solves the problem nicely. the login does not leak
> information and the error message is correct.

I'm also +1 on this solution. Although maybe "is" should be inserted before
the word restricted.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Apolloner  
View profile  
 More options Sep 13 2011, 3:07 pm
From: Florian Apolloner <f.apollo...@gmail.com>
Date: Tue, 13 Sep 2011 12:07:15 -0700 (PDT)
Local: Tues, Sep 13 2011 3:07 pm
Subject: Re: please reopen ticket 15567

Hmm, actually my text was supposed to go below the quotes, but apperently
the new google interface is a bit buggy -- nevertheless I hope you still
understand the point I am trying to make even without correct quoting order…


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Jenkins  
View profile  
 More options Sep 13 2011, 3:14 pm
From: Adam Jenkins <emperorce...@gmail.com>
Date: Tue, 13 Sep 2011 14:14:50 -0500
Local: Tues, Sep 13 2011 3:14 pm
Subject: Re: please reopen ticket 15567

On Tue, Sep 13, 2011 at 12:42 PM, Wim Feijen <wimfei...@gmail.com> wrote:
> Hi, thanks for your quick responses!

> Flavio, Jan and Florian, it only "gives away information" when an
> attacker guesses both the username and the password right.

I think this is the correct approach. Give them the access warning on
correct login. It also seems to be the standard way to doing such
things in my experience.

> But if he can guess those right, he could already access the users
> information using the normal login! So giving this message does not
> change the danger. On the other hand, it would prevent lots of
> confusion.

We really shouldn't be confusing the end user. It's just bad design to do so.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Babatunde Akinyanmi  
View profile  
 More options Sep 13 2011, 3:33 pm
From: Babatunde Akinyanmi <tundeba...@gmail.com>
Date: Tue, 13 Sep 2011 20:33:13 +0100
Local: Tues, Sep 13 2011 3:33 pm
Subject: Re: please reopen ticket 15567
The correct approach is to give a "one size fits all" error message.
While security is important, so also is user experience.

On 9/13/11, Adam Jenkins <emperorce...@gmail.com> wrote:

--
Sent from my mobile device

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
silent1mezzo  
View profile  
 More options Sep 13 2011, 3:38 pm
From: silent1mezzo <adammcker...@gmail.com>
Date: Tue, 13 Sep 2011 12:38:08 -0700 (PDT)
Local: Tues, Sep 13 2011 3:38 pm
Subject: Re: please reopen ticket 15567
-1

If a person brute forces your site and finds the correct username /
password they could try this on other sites (gmail, banking, etc..)
While it would make it a little more clear I think the implications
are too big.

On Sep 13, 3:14 pm, Adam Jenkins <emperorce...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Kelly  
View profile  
 More options Sep 13 2011, 3:45 pm
From: Ian Kelly <ian.g.ke...@gmail.com>
Date: Tue, 13 Sep 2011 13:45:21 -0600
Local: Tues, Sep 13 2011 3:45 pm
Subject: Re: please reopen ticket 15567

On Tue, Sep 13, 2011 at 11:24 AM, Adam Jenkins <emperorce...@gmail.com> wrote:
> +1 on making the error say more than incorrect username/password. That
> is confusing. In regards to leaking information about the user. The
> error message in general could be changed to something like this, of
> course with better wording:

> "Username and password incorrect or access to this page restricted".

> The current status is that we are telling the user something this is
> incorrect. I've actually run into this situation before where I had a
> user reset their password a few times before coming to me.

+1 on this suggestion.  This has no security implications and is
clearly an improvement over the existing message.

-1 on the idea of having two separate messages.  It gives away
information, and regardless of whether that information is useful to
an attacker, we should not be trying to predict that.  We can't
envision all possible scenarios, so we should just assume that the
information *is* useful and avoid doing that.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacob Kaplan-Moss  
View profile  
 More options Sep 13 2011, 5:42 pm
From: Jacob Kaplan-Moss <ja...@jacobian.org>
Date: Tue, 13 Sep 2011 16:42:53 -0500
Local: Tues, Sep 13 2011 5:42 pm
Subject: Re: please reopen ticket 15567
Hi folks --

I agree 100% with what Russ had to say on the ticket: leaking
information about admin accounts isn't OK, and we won't change that.

If someone would like to submit a patch with different wording that
covers all cases -- "this is an invalid user/password for admin
access" or somesuch -- that's fine. Please open a new ticket for it so
we don't get confused though. But having one and only one error
message here is by design.

Thanks!

Jacob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wim Feijen  
View profile  
 More options Sep 13 2011, 6:39 pm
From: Wim Feijen <wimfei...@gmail.com>
Date: Tue, 13 Sep 2011 15:39:05 -0700 (PDT)
Local: Tues, Sep 13 2011 6:39 pm
Subject: Re: please reopen ticket 15567
Ladies and gentlemen,

Thanks for all the feedback, a patch is in ticket 16837:
https://code.djangoproject.com/ticket/16837

Feel free to try and review the patch.

Best regards and for now, good night.

Wim

On 13 sep, 23:42, Jacob Kaplan-Moss <ja...@jacobian.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »