CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Passing security parameters to a page via URL

Print topic Send  topic

Author Message
Trevor
Posted: 06/21/2002, 4:36 AM

I want to be able to pass whatever the required information is for a page which has the Security Level set at 3 - High within the URL from a VB program. The VB program knows the UserID and the Security_level. I am using PHP. How do I do this?

This doesn't work:
http://theseowgroup/php%20webs/rac_standards/clients.ph...=1,UserRights=3

Any Ideas???
Brent
Posted: 06/21/2002, 8:19 AM

Try:
http://theseowgroup/php%20webs/rac_standards/clients.ph...=1&UserRights=3

Use an "&" instead of a "," between parameters.

However you are asking to get hacked. You might as well put up a neon sign that
says "Hack Me!".<g>

Any parameter that is passed as a URL, Post, or cookie information can be modified
by the user. What happens for example if the page is displayed with "UserID=1&UserRights=3"
in the URL and the user alters it to "UserID=2&UserRights=3" or modifies the UserRights?
The page reloads with these paramaters. Can you see the "fun" you're going to have
if you pass security related information?

These fields are best suited to session variables. You can also add a checksum
to the parameters and validate the checksum when the receiving page is loaded.
This ensures none of the parameters have changed.

Brent

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.