The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

is PHP this hackable? by dennismv2014-02-06 07:18:30
  Depends on your definition by andyz 2014-02-06 09:24:36
In general, if it relies on user-submitted (via GET, POST, etc) data, if you don't sanitize it before use, you might be vulnerable in some way.

Also, according to php.net, $_REQUEST doesn't necessarily track updates that may be done within the program to $_GET or $_POST data. If I were programming it, I wouldn't rely on $_REQUEST, but construct my own internal array from GET, POST (or both, with a defined preference) while sanitizing/validating the data as it's included into the internal structure.

Alternately, if you have a list of defined app names, you can create a fixed array of the names, then try to match your incoming user data with in_array() or array_search().
[ Reply ]
    *sigh* by tonyz2014-02-06 10:35:28
      You're welcome. by andyz2014-02-06 12:11:00

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)