views:

73

answers:

4

Hi

I have enabled SSL and I am doing a jQuery AJAX post request and sending some fields to the server.

When I look at the AJAX post request through firebug under the post parameters I see all the fields in clear text.

So this means I can see the passwords in clear text. Is this normal? I am also looking at it with fiddler and it does not even log this AJAX request(so its like the request was never made).

So is it just because firebug is installed in the browser and can capture it or what?

A: 

Off the top of my head I would think that Firebug is showing you exactly what is being sent. Otherwise it would mean that it is somehow decode encoded information.

If you really want to confirm this, use a tool which can capture the web traffic outside of the browser. Tcpdump for example.

Derek Clarkson
does fiddler not capture the data outside the browser?
chobo2
Fiddler should capture it, at lease the official web site claims. another tool is called charles, you can get it from http://www.charlesproxy.com/
Russel Yang
Fiddler works just fine; he didn't enable HTTPS-decryption. It's off by default.
EricLaw -MSFT-
+1  A: 

ssl enables security when the data moves from browser to web sever. Firebug is a browser plugin, it knows everything in the DOM tree. I think it makes sense for firebug display the input fields and form data.

Russel Yang
+1  A: 

Yes, you can see the field data because FireBug is capturing the requests inside Firefox before they're encrypted. If you inspect the actual network traffic with a protocol analyzer like Wireshark you'll see that it's encrypted.

Sam Hanes
A: 

"So this means I can see the passwords in clear text. Is this normal?"

Yup. The data resides on your browser, that is - the user agent, and is captured before it is communicated to the server. Any encryption operation is vulnerable to sniffing at the point at which the value enters the closed system. That's why if your machine is compromised (say, by malware) very little will help.

Rushyo