954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

retrieve saved password in web browser

hey guys.

i am very new to programing and was wondering if anyone else had seen this little trick.

this is a little java code to get a saved password prom a website.

javascript:alert(document.forms[0].elements[1].value)

the forms and values change from site to site but this code works for this site.

if you click remember me on this website and then log out and type that code into the URL spot then it will return your password.

i just kinda thought it was neat.

give it a try

jermaghs07
Posting Whiz
310 posts since Jan 2008
Reputation Points: 49
Solved Threads: 16
 

Very cool, thank you for sharing ... I stuck that one in my library, wonder where it will come in handy?

Cheers

langsor
Posting Whiz
390 posts since Aug 2008
Reputation Points: 30
Solved Threads: 36
 

yea i don't know if it will ever come in handy or not but i thought it was neat.

jermaghs07
Posting Whiz
310 posts since Jan 2008
Reputation Points: 49
Solved Threads: 16
 

hey guys.

i am very new to programing and was wondering if anyone else had seen this little trick.

this is a little java code to get a saved password prom a website.

javascript:alert(document.forms[0].elements[1].value)

the forms and values change from site to site but this code works for this site.

if you click remember me on this website and then log out and type that code into the URL spot then it will return your password.

i just kinda thought it was neat.

give it a try

I've noticed this before but your post got me thinking about XSS and I just realized that it can be carried out even if you are not logged into a website.

The common misconception is that you have to be logged into a website for an XSS attack to steal your session and make use of it.

It appears that if you use the remember password feature, an XSS can be carried out even if you're not logged into a website, stealing your username and password credentials directly.

I haven't seen this type of XSS mentioned at all.

digital-ether
Nearly a Posting Virtuoso
Moderator
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
 

I've noticed this before but your post got me thinking about XSS and I just realized that it can be carried out even if you are not logged into a website.

The common misconception is that you have to be logged into a website for an XSS attack to steal your session and make use of it.

It appears that if you use the remember password feature, an XSS can be carried out even if you're not logged into a website, stealing your username and password credentials directly.

I haven't seen this type of XSS mentioned at all.


Interesting insight, I am fascinated by security concerns,yet I've never fully wrapped my brain around XSS attacks, and what you're saying definitely deserves investigation.

Do you think this is a real vulnerability?

langsor
Posting Whiz
390 posts since Aug 2008
Reputation Points: 30
Solved Threads: 36
 

Interesting insight, I am fascinated by security concerns, yet I've never fully wrapped my brain around XSS attacks, and what you're saying definitely deserves investigation.

Do you think this is a real vulnerability?

I've looked into this a bit. There is a similar exploit mentioned on Linux.com: http://www.linux.com/feature/118166

However, this works on a bug in Firefox which makes it populate the user and password fields even through the action (url to sumbit to) is a remote attackers site. Most the other forms based on the autocomplete of forms works this way also.

I couldn't find any articles on stealing the username and password directly just by getting their values through JavaScript.
So here is a proof of concept.
http://xss-password.appjet.net/

So yes, it is a real vulnerability. I'd consider it more serious then stealing session information since it can be achieved at any time after the saving of the password by the browser.

I've only tested in FF2.

digital-ether
Nearly a Posting Virtuoso
Moderator
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
 

someone used my pc to log to his email using firefox ... can I retrieve the password he used ... is it saved anywhere on my pc?

mijaja
Newbie Poster
1 post since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You