Enter your email at Tomatogram and we will send you big deals on software each week!
Stealth Submit Using AJAX
Have you ever started filling a web form and halfway into it decide against submitting because suddenly you no longer trust the website enough? You closed the browser window and that was the end of story, right? Wrong! The website might still have your information. You think it’s impossible? This article will show you how it can be done. I call the technique Stealth Submit.
Unless you have been living under a rock there is no way that you wouldn’t have heard about AJAX. Stealth Submit uses AJAX to save the values entered on the web form to a database.
To implement Stealth Submit the following example uses two files:
majax.aspx: This file implements the web form. It consists of plain HTML and Javascript (and hence the AJAX functions).
majaxSaveToDB.aspx: This file is the server side script which implements the database operations. Values to be saved are passed as a part of the query string. After saving the values to a database the status is posted back.
Click here to view a complete working example.
To view the complete implementation, do a “view source” for the above page in your browser.
Stealth Submit can be used for constructive purposes like implementing auto save for your web applications. Some of the Web 2.0 applications already take advantage of this technique. At the same time, in wrong hands it can be used to capture information without the user’s knowledge. I hope the technique described here finds good use in our future applications.
Note: The intent of this article is to educate the readers as to how AJAX could be used to capture information without their knowledge or consent by malicious websites. It is advised that no information should be entered on a web form that you do not completely trust.
Liked this article? Please digg | reddit. Thank you!
Unless you have been living under a rock there is no way that you wouldn’t have heard about AJAX. Stealth Submit uses AJAX to save the values entered on the web form to a database.
To implement Stealth Submit the following example uses two files:
majax.aspx: This file implements the web form. It consists of plain HTML and Javascript (and hence the AJAX functions).
majaxSaveToDB.aspx: This file is the server side script which implements the database operations. Values to be saved are passed as a part of the query string. After saving the values to a database the status is posted back.
Click here to view a complete working example.
To view the complete implementation, do a “view source” for the above page in your browser.
Stealth Submit can be used for constructive purposes like implementing auto save for your web applications. Some of the Web 2.0 applications already take advantage of this technique. At the same time, in wrong hands it can be used to capture information without the user’s knowledge. I hope the technique described here finds good use in our future applications.
Note: The intent of this article is to educate the readers as to how AJAX could be used to capture information without their knowledge or consent by malicious websites. It is advised that no information should be entered on a web form that you do not completely trust.
Liked this article? Please digg | reddit. Thank you!
23 Comments:
Hi,
This is Kedar from ISU and a pal of Punit Vora And I was wonderin if you could hand me the code for the MAJAX for a project in my class
i am just curios how it works.
I could use it for AutoSave in my project.
Thanx
By Kd, at 3:31 AM
Thats a tad sneaky! Imagine if for example you apply for a credit card or insurance online, you get halfway through the application and drop out. If an unscruplulous company was using this technique then they could potentially use this information to spam you:
"It looks like you tried to apply for xxxxxx, but dropped out. Perhaps this product better suits your needs... to continue your application click here".
Some would see it as helpful, others an invasion of privacy. Thankfully many countries have Data Protection legislation which should prevent the big players from doing this.
I do however see some possibly nice applications of this kind of thing...
By Anonymous, at 1:01 PM
Whoa! Next thing you know, web developers will have access to your IP and your cookies!
By Anonymous, at 5:18 PM
Chris: Companies do that anyway.
To make the Internet safe: turn off JavaScript
By Anonymous, at 10:22 PM
Or someone could just hit tab then alt-tab or "maybe" someone could write a js to do this automatically to fill up the whole DB space or launch a DOS attack on a website? rather unsecure and unnecessary if you ask me.
By Anonymous, at 11:06 PM
Anonymous: I would disagree. Reputable companies try not to do this all the time!
By Anonymous, at 5:36 PM
I agree with Chris. No reputable company would use such a technique (the Sony rootkit incident comes to mind).
And tuning off javascript is not a very fesible option. None of the latest web applications would for you if you tried it.
By The Random Guy, at 5:54 PM
good one man..
By Victim Of Desire, at 9:29 AM
There are other ways, without using AJAX, to achieve this. IFrame, loading an image, etc. comes to mind.
By Anonymous, at 6:49 PM
So, what's the ultimate solution ?
By Anonymous, at 1:51 AM
勝美搬家公司累積二十多年的搬家、機械搬遷服務經驗。
By Anonymous, at 1:19 AM
福元清潔公司有專業的清潔服務團隊,,全年無休完善的清潔服務。
By Anonymous, at 1:19 AM
新北巿搬家公司推出員工評鑑制度,讓消費者享受更好、 更周到的搬家服務。
By Anonymous, at 1:20 AM
八色鳥畫室-為大台北兒童畫室提供土城畫室、板橋畫室等兒童美術教學,另有台中畫室,歡迎洽詢各區畫室。
By Anonymous, at 1:20 AM
齊舍室內設計提供鄉村風的空間設計,尤其擅長商業空間設計,另備有室內設計作品參考。
By Anonymous, at 1:29 AM
三立搬家公司提供大台北搬家者最精緻的搬家服務。
By Anonymous, at 1:30 AM
路易留學顧問中心,英國留學,全球遊學,打工遊學
By Anonymous, at 4:53 AM
萬事興搬家公司,專業提供台北搬家、桃園搬家、中歷搬家等精緻搬家服務。
By Anonymous, at 2:28 AM
Sorry for the huge review, but I'm really loving the articles, and hope this, replica Louis Vuitton handbags
wholesale replica handbags
replica handbags
replica designer handbags
Louis vuitton handbags
as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.
By replica handbags, at 2:56 AM
I was very pleased to find this site.I wanted to thank you for this great read!! fake handbags
fake bags
fake louis vuitton bags
fake louis vuitton
louis vuitton handbags
I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
By fake handbags, at 2:58 AM
I was very pleased to find this site.I wanted to thank you for this great read!! designer handbags
replica handbags
louis vuitton handbags
replica Louis vuitton handbags
replica designer handbagsI definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
By handmadejewelry, at 3:02 AM
Tibetan Jewelry
Handmade Jewelry
By handmadejewelry, at 3:04 AM
If you are archers, this is an easy and good way for you to hunt and get some FFXIV GIL. There have huge cheap ffxiv gil in our stock. Make order when you need please. And always, always, ALWAYS! Pick up what the monsters drop; this gets you a nice sum of Buy FFXIV Gil to use on skills and potions and all other necessities needed.
By Anonymous, at 9:16 PM
Post a Comment
<< Home