Go Back   Wireless and Wifi Forums > News > Newsgroups > comp.security.misc
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-01-2007, 06:06 PM
Reporter
Guest
 
Posts: n/a
Default Can anyone interpret this paragraph from "Connected: An Internet Encyclopedia"?

This is from Chapter 12.2 Safe Methods

http://www.freesoft.org/CIE/RFC/1945/70.htm

"In particular, the convention has been established that the GET and
HEAD methods should never have the significance of taking an action
other than retrieval. These methods should be considered "safe." This
allows user agents to represent other methods, such as POST, in a
special way, so that the user is made aware of the fact that a
possibly unsafe action is being requested."

What does this mean? Thank you.


Reply With Quote
  #2 (permalink)  
Old 07-01-2007, 06:59 PM
Todd H.
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An Internet Encyclopedia"?

Reporter <TruckSafety@gmail.com> writes:

> This is from Chapter 12.2 Safe Methods
>
> http://www.freesoft.org/CIE/RFC/1945/70.htm
>
> "In particular, the convention has been established that the GET and
> HEAD methods should never have the significance of taking an action
> other than retrieval. These methods should be considered "safe."


GET and HEAD commands sent to a web server should do nothing but read
some stuff. They shouldn't change anything. Furthermore, they
aren't generally sending any info to the web server across a (possibly
unencrypted) connection other than the request itself.

Some GET requests however do send parameters in the URL, sometimes
stupidly.

> This allows user agents


"user agents" think "web browsers"

> to represent


implement

> other methods, such as POST, in a special way, so that the user is
> made aware of the fact that a possibly unsafe action is being
> requested."


POST is generally the request a web browser is doing behind the scenes
when say, you press SUBMIT on a web form a login form, credit card
details form, search box, whatever.

The RFC is suggesting here that warning box you get when you first
submit a form (that uses the POST method) on a new computer or with a
new web browser that warns you that you are about to submit form field
details and send them over an unencrypted link (in the case of a
non-ssl site) and that other people can view them.


At least that's one opinion of what this all means, anyway.

Best Regards,d
--
Todd H.
http://www.toddh.net/

Reply With Quote
  #3 (permalink)  
Old 07-01-2007, 07:27 PM
Reporter
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An Internet Encyclopedia"?

On Jul 1, 12:59 pm, comph...@toddh.net (Todd H.) wrote:
> Reporter <TruckSaf...@gmail.com> writes:
> > This is from Chapter 12.2 Safe Methods

>
> >http://www.freesoft.org/CIE/RFC/1945/70.htm

>
> > "In particular, the convention has been established that the GET and
> > HEAD methods should never have the significance of taking an action
> > other than retrieval. These methods should be considered "safe."

>
> GET and HEAD commands sent to a web server should do nothing but read
> some stuff. They shouldn't change anything. Furthermore, they
> aren't generally sending any info to the web server across a (possibly
> unencrypted) connection other than the request itself.
>
> Some GET requests however do send parameters in the URL, sometimes
> stupidly.
>
> > This allows user agents

>
> "user agents" think "web browsers"
>
> > to represent

>
> implement
>
> > other methods, such as POST, in a special way, so that the user is
> > made aware of the fact that a possibly unsafe action is being
> > requested."

>
> POST is generally the request a web browser is doing behind the scenes
> when say, you press SUBMIT on a web form a login form, credit card
> details form, search box, whatever.
>
> The RFC is suggesting here that warning box you get when you first
> submit a form (that uses the POST method) on a new computer or with a
> new web browser that warns you that you are about to submit form field
> details and send them over an unencrypted link (in the case of a
> non-ssl site) and that other people can view them.
>
> At least that's one opinion of what this all means, anyway.
>
> Best Regards,d
> --
> Todd H.http://www.toddh.net/


Todd, thank you very much.

- Sam -


Reply With Quote
  #4 (permalink)  
Old 07-02-2007, 07:36 AM
Volker Birk
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An Internet Encyclopedia"?

Todd H. <comphelp@toddh.net> wrote:
> GET and HEAD commands sent to a web server should do nothing but read
> some stuff. They shouldn't change anything.


Oh yes, they can. They can change some state in the web server, why not?

Yours,
VB.
--
"Es muss darauf geachtet werden, dass das Grundgesetz nicht mit Methoden
geschützt wird, die seinem Ziel und seinem Geist zuwider sind."

Gustav Heinemann, "Freimütige Kritik und demokratischer Rechtsstaat"

Reply With Quote
  #5 (permalink)  
Old 07-02-2007, 02:14 PM
Sebastian G.
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An InternetEncyclopedia"?

Volker Birk wrote:

> Todd H. <comphelp@toddh.net> wrote:
>> GET and HEAD commands sent to a web server should do nothing but read
>> some stuff. They shouldn't change anything.

>
> Oh yes, they can. They can change some state in the web server, why not?



Read the RFC: They shouldn't, and if you don't follow this, you run into a
big load of problems like inconsistencies on load errors or Cross Site
Request Forgery attacks.

Reply With Quote
  #6 (permalink)  
Old 07-02-2007, 03:18 PM
Volker Birk
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An Internet Encyclopedia"?

Sebastian G. <seppi@seppig.de> wrote:
> Volker Birk wrote:
> > Todd H. <comphelp@toddh.net> wrote:
> >> GET and HEAD commands sent to a web server should do nothing but read
> >> some stuff. They shouldn't change anything.

> > Oh yes, they can. They can change some state in the web server, why not?

> Read the RFC: They shouldn't, and if you don't follow this, you run into a
> big load of problems like inconsistencies on load errors or Cross Site
> Request Forgery attacks.


Do you want to claim, that web applications, which are using GET
requests, are impossible to implement?

You're claiming here, that eBay don't exist BTW.

Yours,
VB.
--
"Es muss darauf geachtet werden, dass das Grundgesetz nicht mit Methoden
geschützt wird, die seinem Ziel und seinem Geist zuwider sind."

Gustav Heinemann, "Freimütige Kritik und demokratischer Rechtsstaat"

Reply With Quote
  #7 (permalink)  
Old 07-02-2007, 03:31 PM
Sebastian G.
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An InternetEncyclopedia"?

Volker Birk wrote:

> Sebastian G. <seppi@seppig.de> wrote:
>> Volker Birk wrote:
>>> Todd H. <comphelp@toddh.net> wrote:
>>>> GET and HEAD commands sent to a web server should do nothing but read
>>>> some stuff. They shouldn't change anything.
>>> Oh yes, they can. They can change some state in the web server, why not?

>> Read the RFC: They shouldn't, and if you don't follow this, you run into a
>> big load of problems like inconsistencies on load errors or Cross Site
>> Request Forgery attacks.

>
> Do you want to claim, that web applications, which are using GET
> requests, are impossible to implement?



No. I claim they're impossible to implement correctly wrt. to how the
webbrowser as a client is modeled.

> You're claiming here, that eBay don't exist BTW.


No, I only claim that eBay is broken. Which it is, obviously.

Now will you please read my statement again? What part of "shouldn't" didn't
you understand?

Reply With Quote
  #8 (permalink)  
Old 07-07-2007, 08:17 AM
Volker Birk
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An Internet Encyclopedia"?

Sebastian G. <seppi@seppig.de> wrote:
> Now will you please read my statement again? What part of "shouldn't" didn't
> you understand?


I really don't understand how dumb a "discussion" can become.

VB.
--
"Es muss darauf geachtet werden, dass das Grundgesetz nicht mit Methoden
geschützt wird, die seinem Ziel und seinem Geist zuwider sind."

Gustav Heinemann, "Freimütige Kritik und demokratischer Rechtsstaat"

Reply With Quote
  #9 (permalink)  
Old 07-07-2007, 08:36 AM
Mark Shroyer
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An Internet Encyclopedia"?

On 2007-07-02, Sebastian G. <seppi@seppig.de> wrote:
> Volker Birk wrote:
>
>> Todd H. <comphelp@toddh.net> wrote:
>>> GET and HEAD commands sent to a web server should do nothing but read
>>> some stuff. They shouldn't change anything.

>>
>> Oh yes, they can. They can change some state in the web server, why not?

>
> Read the RFC: They shouldn't, and if you don't follow this, you run into a
> big load of problems like inconsistencies on load errors or Cross Site
> Request Forgery attacks.


Using POST instead of GET won't necessarily stop cross-site request
forgeries, though, if an attacker can get his victim to execute a
little bit of JavaScript...

(Not that I disagree with you in general; allowing GET commands to
change an application's state is definitely bad joojoo.)

--
Mark Shroyer
http://markshroyer.com/

Reply With Quote
  #10 (permalink)  
Old 07-07-2007, 09:19 AM
Sebastian G.
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An InternetEncyclopedia"?

Mark Shroyer wrote:


> Using POST instead of GET won't necessarily stop cross-site request
> forgeries, though, if an attacker can get his victim to execute a
> little bit of JavaScript...



Hm? Even form.submit() causes a warning if the form submission method is POST.

Reply With Quote
  #11 (permalink)  
Old 07-07-2007, 09:21 AM
Sebastian G.
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An InternetEncyclopedia"?

Volker Birk wrote:

> Sebastian G. <seppi@seppig.de> wrote:
>> Now will you please read my statement again? What part of "shouldn't" didn't
>> you understand?

>
> I really don't understand how dumb a "discussion" can become.


Oh, that's quite easy: Just take a fool who doesn't understand that GET
requests are expected to not change the application state, but then doing so
leads to a inconsistency between server and client.

Reply With Quote
  #12 (permalink)  
Old 07-07-2007, 11:09 AM
Mark Shroyer
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An Internet Encyclopedia"?

On 2007-07-07, Sebastian G. <seppi@seppig.de> wrote:
> Mark Shroyer wrote:
>
>> Using POST instead of GET won't necessarily stop cross-site request
>> forgeries, though, if an attacker can get his victim to execute a
>> little bit of JavaScript...

>
> Hm? Even form.submit() causes a warning if the form submission method is POST.


Generally speaking, that isn't true. Which browser are you using?

--
Mark Shroyer
http://markshroyer.com/

Reply With Quote
  #13 (permalink)  
Old 07-07-2007, 06:22 PM
Sebastian G.
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An InternetEncyclopedia"?

Mark Shroyer wrote:

> On 2007-07-07, Sebastian G. <seppi@seppig.de> wrote:
>> Mark Shroyer wrote:
>>
>>> Using POST instead of GET won't necessarily stop cross-site request
>>> forgeries, though, if an attacker can get his victim to execute a
>>> little bit of JavaScript...

>> Hm? Even form.submit() causes a warning if the form submission method is POST.

>
> Generally speaking, that isn't true. Which browser are you using?


Mozilla Seamonkey 1.1.2. Which browser don't have such a general check for POST?

Reply With Quote
  #14 (permalink)  
Old 07-08-2007, 04:16 AM
Mark Shroyer
Guest
 
Posts: n/a
Default Re: Can anyone interpret this paragraph from "Connected: An Internet Encyclopedia"?

On 2007-07-07, Sebastian G. <seppi@seppig.de> wrote:
> Mark Shroyer wrote:
>
>> On 2007-07-07, Sebastian G. <seppi@seppig.de> wrote:
>>> Mark Shroyer wrote:
>>>
>>>> Using POST instead of GET won't necessarily stop cross-site
>>>> request forgeries, though, if an attacker can get his victim to
>>>> execute a little bit of JavaScript...
>>> Hm? Even form.submit() causes a warning if the form submission
>>> method is POST.

>>
>> Generally speaking, that isn't true. Which browser are you using?

>
> Mozilla Seamonkey 1.1.2. Which browser don't have such a general
> check for POST?


None of the latest versions of Firefox, Safari, and IE 7 (the latter
operating with the default security settings for the Internet Zone)
will prevent scripts from submitting a form by POST or require user
authorization to do so. For example:

#v+
<html>
<head>
<title>JavaScript form submission example</title>
<script type="text/javascript">
submitForm = function()
{
document.forms["form"].submit();
}
</script>
</head>
<body onload="submitForm();">
<h1>JavaScript form submission example</h1>
<p>Test whether the web browser gives a warning on a JavaScript form
submission by POST.</p>
<form id="form" action="http://markshroyer.com/test/vars.php" method="post">
<input type="hidden" name="command" value="beEvil" />
</form>
</body>
</html>
#v-

To try it, visit this URL with JavaScript enabled:
http://plaza.ufl.edu/mshroyer/form.html

--
Mark Shroyer
http://markshroyer.com/

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PENTAGON TO PUT INTERNET ROUTER -- IN SPACE AirRaid alt.internet.wireless 43 04-19-2007 03:11 AM
Call for Papers with Extended Deadline: 2007 International Conference on Internet Computing (ICOMP'07), June 25-28, 2007, USA A. M. G. Solo comp.security.misc 0 02-26-2007 11:32 AM
Last Call for Papers: 2007 International Conference on Internet Computing (ICOMP'07), June 25-28, 2007, USA A. M. G. Solo comp.security.misc 0 02-15-2007 07:56 PM
From Internet to Wireless Fidelity (Wi-Fi): A Study of Wi-Fi Public Hotspots Users. EsPUdeh@gmail.com alt.internet.wireless 1 07-31-2006 08:26 PM
Myopic Economist article: Skype and "How the internet killed the phone business" Valiant uk.telecom.voip 5 09-16-2005 04:11 PM


All times are GMT. The time now is 09:12 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45