473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

security risks with using GET instead of POST?

OK - I'll add some text here for clarification.

I remember reading long ago something about the it was easier to hack a GET
than a POST.

Is that true? If so, can it be overcome?

The reason I ask is that I want the user to be able to click the BACK button
in the browser and go back to a search RESULTS page without getting a page
expired error.
Jul 17 '05 #1
3 2876
On 2004-08-14, NotGiven <no****@nonegiven.net> wrote:
I remember reading long ago something about the it was easier to hack a GET
than a POST.
Is that true? If so, can it be overcome?
Its easier to change a url, than getting your browser/client to post
other data. But POST is still as "secure" as GET. Dont ever trusth the
data from clients - make sure you validate, dont assume that you are
getting what you expect.
The reason I ask is that I want the user to be able to click the BACK button
in the browser and go back to a search RESULTS page without getting a page
expired error.


Use GET :)

--
Dennis Møllegaard Pedersen, Denmark
replace spam with my firstname sp**@moellegaard.dk
PGP fingerprint = 5A23 2E7D 7F4F 7FBE 39AC CDEF 55A0 FF70 87C0 59D9
Jul 17 '05 #2
NotGiven wrote:
I want the user to be able to click the BACK button in the browser
and go back to a search RESULTS page without getting a page expired
error.


This sounds idempotent to me. You can read about this in rfc 2616, or
for something a bit more readable, try this:

http://www.cs.tut.fi/~jkorpela/forms/methods.html

If it is idempotent, use GET. (And note what Dennis Pedersen [1] said
about security.

[1] I can't make that character in my newseader -- at least, I don't
know how -- so I've left your middle name out. :-)

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 17 '05 #3
"Dennis Mllegaard P" wrote:
On 2004-08-14, NotGiven <no****@nonegiven.net> wrote:
I remember reading long ago something about the it was easier to hack a GET
than a POST.
Is that true? If so, can it be overcome?


Its easier to change a url, than getting your browser/client to

post other data. But POST is still as "secure" as GET. Dont ever trusth the data from clients - make sure you validate, dont assume that you are getting what you expect.
The reason I ask is that I want the user to be able to click the

BACK button
in the browser and go back to a search RESULTS page without

getting a page
expired error.


Use GET


And read up on "sql injection" attacks (use your favorite search
engine). As indicated, validate input. e.g. if you expert $_GET[’a’]
to be integer, then do

$a = intval($_GET[’a’]);
it is also advised to email yourself a message if the above match does
not occur. Some hacker may be "probing" your system.

On the positive side, most hackers go after established scripts
(phpnuke, phpbb, etc.) which are the same from one implementation to
another. I don’t think they bother with custom implementation sites,
unless they are determined, or the site is very popular (at which
time, one can afford to fix things up).

And you would never be 100% sure that things are secure, so frequent
backs are advised.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-security...ict139663.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=467179
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jonathan | last post by:
Thanks for the help and commentary on sessions. I had another question or two on a related topic. I installed a newer version of php and went in to set it to read global variables, which was...
38
by: Tim Tyler | last post by:
Here's what this morning's security advisory read here: ``In the last 3 months we have noticed an marked increase in the number of web-server attacks and successful compromise on our network....
6
by: WhenAmIOn.com | last post by:
Hi all, I developed a web site that uses javascript and XMLHTTP to dynamically load info on the page from the server without having to re-load the page. Recently I've received complaints of it...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
13
by: raykyoto | last post by:
Hi all, I'm sure this is a popular question that comes up every few months here. Indeed, I've looked at some of the past postings, but I would like to ask things differently. Basically, I'm...
1
by: DB2 | last post by:
Hello, everyone. Does anyone know what potential security issues when running DB2 services (start-up) using local system account instead of the DB2 admin account? DB2 environments: Windows...
7
by: Thirsty Traveler | last post by:
I have a question regarding the use of guery string variables. I understand this can be a security risk subject to "brute force" attacks. Is this true and, if so, what is the proper way to handle...
2
by: clai83 | last post by:
Hi everyone, I have a question regarding vulnerabilities related to PHP superglobals, in particular $_SERVER. I will have a website on a shared hosting environment, and I am unsure of the risks...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.