Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: ENV{'REMOTE_USER'} is it safe?

by MarkM (Curate)
on Sep 28, 2003 at 18:57 UTC ( #294785=note: print w/ replies, xml ) Need Help??


in reply to ENV{'REMOTE_USER'} is it safe?

REMOTE_USER should be safe to use under Apache and most other HTTP servers. The variables that are not safe to use, are the ones that are provided directly from the client. These usually begin with HTTP_*.


Comment on Re: ENV{'REMOTE_USER'} is it safe?
Re: Re: ENV{'REMOTE_USER'} is it safe?
by spacey (Scribe) on Sep 28, 2003 at 19:25 UTC
    Thanks for the clarification
    I was concerned that a user who may have already authenticated would be able to push a modified REMOTE_USER variable.
      In theory they can. Because HTTP is stateless, the username and password have to be supplied again for each request. Users don't see this because the browser handles it for them. In practice they can't, because most (all?) browsers don't give the user an easy way to change their username and password once they have successfully logged in to your site, but some might, and if they are using their own program or talking raw HTTP at your server or something similar then all bets are off.

      Even so, if the user *can* send some other username/password, that username/password would still have to be accepted by your web server before they could get at any content so it's probably not something you need to worry about.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://294785]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-10-24 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (130 votes), past polls