RE: Fwd: passing variables in POST

2002-06-25 Thread Bob Showalter
> -Original Message- > From: Ovid [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 25, 2002 3:34 PM > To: Niko Gunadi; Beginners cgi > Subject: Re: Fwd: passing variables in POST > > > I was under the > impression that Apache::Session required Apache. I'

Re: Fwd: passing variables in POST

2002-06-25 Thread Ovid
--- Niko Gunadi <[EMAIL PROTECTED]> wrote: > >thanks very much Ovid, it was very nice of you, but can you complete your > >favour and describe how to implement Apache::Session, i mean, whats the use > >of that module if i could generate a session id with md5? > > you actually can use CGI::Session

Re: Fwd: passing variables in POST

2002-06-25 Thread Niko Gunadi
>thanks very much Ovid, it was very nice of you, but can you complete your >favour and describe how to implement Apache::Session, i mean, whats the use >of that module if i could generate a session id with md5? you actually can use CGI::Session, the front end of Apache::Session. By using this mod

Re: Fwd: passing variables in POST

2002-06-25 Thread Hytham Shehab
> my $md5= new Digest::MD5; > my $remote = $ENV{ REMOTE_ADDR } . $ENV{ REMOTE_PORT } . $self->{ _rand }; > my $id = $md5->md5_base64( time, $$, $remote ); > $id=~ tr|+/=|-_.|; # Make non-word characters URL-friendly > > The "Make ... URL-friendly" part is in case I need to

Re: passing variables in POST

2002-06-25 Thread David T-G
Marty, et al -- ...and then Marty Landman said... % % At 05:47 AM 6/25/02 -0700, John Brooking wrote: % ... % > But wait, there's more! Even if your script *did* % >check the referer, that's no protection either! An % >experienced programmer can easily use Perl's LWP % >module or its equivalen

Re: passing variables in POST

2002-06-25 Thread John Brooking
--- Marty Landman <[EMAIL PROTECTED]> wrote: > > ... > >check the referer, that's no protection either! An > >experienced programmer can easily use Perl's LWP > >module or its equivalent in some other language to > >make the request with a faked referer variable. So > >really, POST variables are n

Re: passing variables in POST

2002-06-25 Thread Ovid
--- John Brooking <[EMAIL PROTECTED]> wrote: > So > really, POST variables are no more secure than GET > variables, it just takes a little more doing to fake > them. Side note (without really reading the rest of the thread :) The reason that many people think POST is more secure than GET is bec

Re: Fwd: passing variables in POST

2002-06-25 Thread Ovid
--- [EMAIL PROTECTED] wrote: > what about a sesion id based on their IP? or soem relevent info like that? Here's how I create session IDs: my $md5= new Digest::MD5; my $remote = $ENV{ REMOTE_ADDR } . $ENV{ REMOTE_PORT } . $self->{ _rand }; my $id = $md5->md5_base64( time, $$, $remo

Re: passing variables in POST

2002-06-25 Thread Marty Landman
At 05:47 AM 6/25/02 -0700, John Brooking wrote: > As David says, the place that you can see the >"hidden" variables is in the page where the form is, >before you submit it. Got that now, thx John. > But wait, there's more! Even if your script *did* >check the referer, that's no protection e

Re: passing variables in POST

2002-06-25 Thread John Brooking
Marty, David's explaining it pretty well, but let me take another crack at it. I was in your position about a year ago and got royally (and publically) flamed on the perl beginners list by a security admin for deigning to give CGI advice without knowing this, so I got what you might call a cras

Re: passing variables in POST

2002-06-25 Thread David T-G
Marty -- ...and then Marty Landman said... % % At 06:50 AM 6/25/02 -0500, David T-G wrote: % ... % >view the page source and you will see the form structure and the hidden % >(note that "hidden" simply means "don't bother to try to display on the % >page", not "secretly encrypted or made to dis

Re: passing variables in POST

2002-06-25 Thread Marty Landman
At 06:50 AM 6/25/02 -0500, David T-G wrote: >When you have page1 loaded and you're about to press the submit button >to send it, and your secret var1, off to the script, don't; instead, >view the page source and you will see the form structure and the hidden >(note that "hidden" simply means "don

Re: passing variables in POST

2002-06-25 Thread David T-G
Marty -- ...and then Marty Landman said... % % At 06:06 AM 6/25/02 -0500, David T-G wrote: % % >If the variables are in the page to be in the form to be % >sent back via POST, then the user can find them, period. % > % >Try it yourself: set up something via POST and then surf to the page % >and

Re: passing variables in POST

2002-06-25 Thread Marty Landman
At 06:06 AM 6/25/02 -0500, David T-G wrote: >If the variables are in the page to be in the form to be >sent back via POST, then the user can find them, period. > >Try it yourself: set up something via POST and then surf to the page >and then "view source" or the equivalent in your browser (and if

Re: passing variables in POST

2002-06-25 Thread David T-G
Niko, et al -- ...and then Niko Gunadi said... % % On Mon, Jun 24, 2002 at 02:35:06PM -0700, Ovid wrote: % >Niko, % > % >If you pass the variables to the page, the user can find them, period. If you control the output ... % % From what i know (which is limited :), if we pass the variable in

Fwd: passing variables in POST

2002-06-24 Thread WyvernGod
--- Begin Message --- what about a sesion id based on their IP? or soem relevent info like that? may be a stupid way to do it.. but i track the "count" of how many users are currently at my site by their IP/timestamp that is saved for 5 min. if someone accesses the web site 5+ min after a t

Re: passing variables in POST

2002-06-24 Thread Niko Gunadi
On Mon, Jun 24, 2002 at 02:35:06PM -0700, Ovid wrote: >Niko, > >If you pass the variables to the page, the user can find them, period. If you >control the output >of the other page, you'll need to create some sort of persistence mechanism. >Typically, this is >done by assigning session ids, sa

Re: passing variables in POST

2002-06-24 Thread Ovid
--- Niko Gunadi <[EMAIL PROTECTED]> wrote: > Hii, > > I want to create a link to another page and want to pass some variables > in which i do not want the user to know. (POST method) > > how to do that ? > > regards, > niko Niko, If you pass the variables to the page, the user can find

Re: passing variables in POST

2002-06-24 Thread John Brooking
Only way I know of is to have the variables in their own private form somewhere on the page, such as: (HTML tags embedded in email message here!) Then have the link submit the form programmatically using javascript: Click here You should be aware, if you are not alr

passing variables in POST

2002-06-24 Thread Niko Gunadi
Hii, I want to create a link to another page and want to pass some variables in which i do not want the user to know. (POST method) how to do that ? regards, niko -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]