|
-
Oct 30th, 2002, 11:14 AM
#1
Thread Starter
Frenzied Member
forms and hidden elements
ok this may sound stupid but bare with me or explain how it can't happen.
ok you have a user, they cruise to some site and look through the shopping cart and find what they want. now they go to sign up and the page the generates the form is for paypal.
what is stopping the user from coping that page and saving it to there hard drive and editing the hidden form elements and adjusting the price, or anything else for that matter, then send it along like nothing happened???
is there a way to hide the forms hidden elements? because some of the hidden elements are needed to complete the process of signing up through paypal.
-
Oct 30th, 2002, 11:23 AM
#2
Black Cat
No, the problem goes beyond just HTML. I have a VB program I wrote that can change any form field, hidden or not, on a page in any running instance of IE. And you can still just open a raw TCP connection to the web server and submit and arbitrary data you want anyway.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Oct 30th, 2002, 11:25 AM
#3
Thread Starter
Frenzied Member
so how is this safe? I can't believe that people really trust forms as much as they do. thanks Josh fo rthat insight, stay away from my site j/k
-
Oct 30th, 2002, 11:27 AM
#4
Addicted Member
Do people use PHP or JSP or ASP to 'hide' the information from the user?
HD
-
Oct 30th, 2002, 11:31 AM
#5
Black Cat
Originally posted by phpman
so how is this safe? I can't believe that people really trust forms as much as they do. thanks Josh fo rthat insight, stay away from my site j/k
You assume all user supplied data is malicious until proven otherwise, thru regular expressions or some other means.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Oct 30th, 2002, 11:34 AM
#6
Thread Starter
Frenzied Member
HD, how do you hide a forms hidden element with serverside code? I don't believe you can.
so nothing is stopping a user from changing the amount of a product if the products amount is a hidden form value?
has to be another way.
-
Oct 30th, 2002, 11:39 AM
#7
Addicted Member
What I mean is that any JSP (I only really know JSP) code is hidden from the user - all they see is the actual output (HTML). Therefore info could be stored in the JSP then validated.
I dont know - I'm just throwing some ideas into the pot!
HD
-
Oct 30th, 2002, 11:50 AM
#8
Thread Starter
Frenzied Member
yeah but the froms elements can't be hidden like that.
I see what you are trying to say and I hope there is a way to do that.
and it is a good idea to throw stuff into the pot.
-
Oct 30th, 2002, 11:59 AM
#9
-
Oct 30th, 2002, 12:25 PM
#10
Thread Starter
Frenzied Member
well yeah sort of. there are somethings that paypal needs to be sent with the form and one of these is the price, or course you have to be a member and if it is a set price then no problem, but if the price varies then it could be altered.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|