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!


41 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
Chris, 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
Burag, at 11:06 PM
Anonymous: I would disagree. Reputable companies try not to do this all the time!
By
Chris, 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
Rian, 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
This has always happend and is never very transparent for the user and it depends on how much you trust the provider (either software or online provider). In word documents and traditional desktop applications, there is moreinformation than meets your eye, you type in word (even though you erase it still) all the undo information is still in the final word document.
This can be used to find information (most frequently used is)
Several resumes showed that someone else prepared the resume other than the applicant. A similar issue was seen with corporate press releases.
More information here....
Trace Reveals Document Security Issues
By
Dev, at 4:04 PM
So, what's the ultimate solution ?
By
MyTech, at 1:51 AM
^^Thanks!!
徵徵徵婚前徵信徵婚姻感情徵大陸抓姦徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵外遇抓姦法律諮詢家暴徵婚前徵信尋人感情挽回大陸抓姦離婚徵徵工商徵信徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵婚前徵信外遇抓姦感情挽回尋人大陸抓姦離婚家暴徵徵工商徵信法律諮詢徵徵徵跟蹤徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵工商徵信徵徵婚前徵信感情挽回外遇抓姦法律諮詢家暴尋人大陸抓姦離婚徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵大陸抓姦徵外遇徵徵徵尋人徵徵家暴徵徵徵徵徵徵徵徵徵工商徵信法律諮詢家暴感情挽回大陸抓姦外遇婚前徵信離婚徵徵尋人徵徵徵徵徵徵徵徵徵徵徵徵工商徵信徵徵徵徵徵徵外遇抓姦法律諮詢家暴婚前徵信大陸抓姦尋人感情挽回徵徵徵徵徵徵徵徵徵徵外遇抓姦婚前徵信感情挽回尋人大陸抓姦工商徵信法律諮詢離婚家暴徵徵徵徵徵徵徵徵徵徵徵徵徵徵工商徵信外遇抓姦法律諮詢家暴婚前徵信尋人感情挽回大陸抓姦離婚徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵婚前徵信工商徵信外遇抓姦尋人離婚家暴大陸抓姦感情挽回法律諮詢徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵離婚感情挽回婚前徵信外遇抓姦家暴尋人徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵工商徵信外遇抓姦法律諮詢家暴婚前徵信尋人感情挽回">徵大陸抓姦離婚徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵婚前徵信工商徵信外遇抓姦尋人離婚家暴大陸抓姦感情挽回法律諮詢徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵徵
By
Anonymous, at 2:43 AM
花蓮,旅遊租車,花蓮旅遊,花蓮租車,花東旅遊,花蓮租車,花蓮租車,花蓮旅遊,租車,花蓮旅行社,花蓮旅遊景點,花蓮旅遊行程,花蓮旅遊地圖,花蓮一日遊,花蓮租車,花蓮租車旅遊網,花蓮租車,花蓮租車,花蓮租車,花東旅遊景點,租車,花蓮旅遊,花東旅遊行程,花東旅遊地圖,花蓮租車公司,花蓮租車,花蓮旅遊租車,花蓮租車,花蓮旅遊,花蓮賞鯨,花蓮旅遊,花蓮旅遊,租車,花蓮租車,花蓮租車 ,花蓮 租車,花蓮,花蓮旅遊網,花蓮租車網,花蓮,租車,花東 旅遊,花蓮 租車,花蓮,旅遊,租車公司,花蓮,花蓮旅遊,花東旅遊,花蓮地圖,包車,花蓮,旅遊租車,花蓮 租車,租車,花蓮租車資訊網,花蓮旅遊,租車,花東,花東地圖,租車公司,租車網,花蓮租車旅遊,租車,花蓮,賞鯨,花蓮旅遊租車,花東旅遊,租車網,花蓮海洋公園,租車 ,花蓮 租車,花蓮,花蓮旅遊,花蓮租車公司,租車花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮包車,花蓮租車網,花蓮旅遊,花蓮租車,花蓮旅行社,花東旅遊,花蓮包車,租車,花蓮旅遊,花蓮租車,花蓮一日遊,租車服務,花蓮租車公司,花蓮包車,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮包車,花蓮租車網,花蓮旅遊,花蓮租車,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮租車,租車網,花蓮租車公司,花蓮旅遊,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮租車公司,花蓮一日遊,租車,租車服務,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮旅遊,花蓮賞鯨,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮包車,花蓮租車網,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,租車花蓮,花蓮租車,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,租車花蓮,花蓮租車,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮包車,花蓮,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮包車,花蓮租車,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮包車,花蓮租車,花蓮旅遊,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮包車,花蓮租車網,租車公司,花蓮租車,花蓮租車公司,花蓮一日遊,花蓮旅遊,花蓮旅遊租車,花蓮租車網,花蓮租車,花蓮一日遊,租車花蓮,花蓮租車,花蓮旅遊租車,花蓮租車,花蓮租車旅遊,花蓮租車,花蓮旅遊,花蓮旅遊,花蓮包車,花蓮溯溪,花蓮泛舟,花蓮溯溪,花蓮旅遊,花蓮旅遊,花蓮租車,租車公司,花蓮旅遊租車,花蓮租車,租車,花蓮旅遊,花蓮租車,花東旅遊,花蓮賞鯨,花蓮旅遊,花蓮泛舟,花蓮賞鯨,花蓮溯溪,花蓮泛舟,花蓮泛舟,花蓮溯溪,花蓮旅遊,花蓮旅遊,花蓮租車,花東旅遊,花蓮,花東,花蓮旅遊,花東旅遊,花蓮租車,花蓮,花東,花蓮旅遊,花蓮租車,花東旅遊,花蓮旅遊,花蓮租車,租車,花蓮旅遊,花蓮租車,花蓮旅遊租車,花蓮旅遊,花蓮租車,花蓮,花東旅遊萬事通,花蓮旅遊,租車,花蓮旅遊,花蓮租車,花蓮旅遊,花蓮租車,花蓮租車,花蓮租車,花蓮旅遊,花蓮租車,花蓮旅遊,花蓮租車,花蓮旅遊,花蓮租車,花蓮旅遊,花蓮租車,花蓮租車,花蓮包車,花蓮旅遊,花蓮租車,花蓮太魯閣,花蓮包車,花東旅遊,花蓮旅遊行程,花蓮旅遊,花蓮 租車,花蓮租車,花蓮租車旅遊,花蓮旅遊租車,租車,花蓮旅遊推薦,花蓮旅遊包車,花蓮租車,花蓮,花蓮租車,花蓮地圖,花蓮旅遊,花蓮旅遊資訊網,花蓮旅遊景點,賞鯨,花蓮旅遊行程,花蓮旅遊,花蓮旅遊租車,花東旅遊景點,花東旅遊行程,花蓮旅遊,花蓮租車,租車,花東旅遊,花蓮旅遊,花蓮租車,花蓮,旅遊達人,旅遊達人blog,花蓮租車旅遊資訊網,花蓮,租車,花蓮,花東旅遊,地圖,租車,賞鯨泛舟溯溪,租車,[ 芝麻店家 ] 花蓮租車旅遊資訊網,花蓮租車-花蓮旅遊租車資訊網 ,旅遊網,旅遊景點,花蓮行程,花蓮,花東,旅遊租車,旅遊,花蓮,租車,花東旅遊,花蓮租車旅遊,行易旅遊民宿資訊網,花蓮,旅遊,花蓮,一日遊,花蓮好玩的地方,花蓮,,一日遊,花東,租車,旅遊,花蓮旅遊,花東旅遊,花蓮租車,花蓮租車,花蓮旅遊-花東旅遊萬事通,花蓮民宿,花蓮民宿,花蓮民宿,花蓮民宿
By
租車公司, at 11:58 AM
芙蝶創意婚禮企劃備有專業婚禮顧問外,還提供海外婚禮服務,給結婚的準新人最貼心的服務。
By
Anonymous, at 10:40 AM
ielts、留學、遊學、托福及全民英檢等考試資訊,可以上網查詢,並找到適合自己的補習班或學習方法。
By
Anonymous, at 10:40 AM
部落格行銷、網站行銷或部落格廣告是未來網路行銷的趨勢。
By
Anonymous, at 10:40 AM
蔡佳祝高雄皮膚科提供皮膚診治外,還有飛梭雷射、淨膚雷射及凹洞診治服務,及特地為高雄減肥者成立的塑身服務,另外與蔡昌學醫師配合提供復健治療服務。
By
Anonymous, at 10:41 AM
慈愛搬家公司為合法經營,公司和員工簽有正式合同,且經過訓練合格才能任職,對於您的搬家需求是有保障的。
By
Anonymous, at 10:42 AM
採購OA辦公家具或要重新室內裝潢設計,可以找信譽優良且值得信賴的三多麗室內設計公司,備有室內設計作品供您參考。
By
Anonymous, at 10:42 AM
公司在挑選室內設計師時,可先參考他的室內設計作品,再選擇自己喜歡的風格,並且在進行室內裝潢的同時,將OA辦公家具也要一併列入。
By
Anonymous, at 10:44 AM
大展搬家公司是台中搬家的首選,優良的搬家服務品質,專業搬家技巧,還提供有全省搬家及回頭車等搬家服務項目,讓您享有精緻搬家的質感。
By
Anonymous, at 10:44 AM
室內設計師能讓室內的空間設計規劃更符合人體功,所以室內設計是室內裝潢的首要。
By
Anonymous, at 10:44 AM
坐月子時所需的坐月子餐,喜樂月子餐外送服務是您最佳選擇。
By
Anonymous, at 10:45 AM
最值得信賴的搬家公司-元氣搬家,不論是大台北搬家或大桃園搬家,都能為客戶提供最佳的搬家服務。
By
Anonymous, at 10:45 AM
為了增進英文能力,遊學是不錯的選擇,哈佛遊留學代辦中心為您提供相關資訊。
By
Anonymous, at 10:45 AM
築成搬家公司的搬家服務,在大台北搬家是有口皆碑。
By
Anonymous, at 10:46 AM
優可專業制服公司,提供團體服、班服等高品質的團體制服,歡迎洽詢選購。
By
Anonymous, at 10:46 AM
網頁設計及虛擬主機是成立一個網站前要做的。
By
Anonymous, at 10:46 AM
在台北搬家中現代日式搬家,是大家推薦的優良搬家公司。
By
Anonymous, at 10:47 AM
三信銀行提供信用貸款、公教貸款等銀行貸款服務,所以有信貸等貸款需求,請洽三信商業銀行。
By
Anonymous, at 10:47 AM
公司室內裝潢完成後,OA辦公家具的購置也是很重要的,可委請室內設計公司一併設計,並參考其室內設計作品進行挑選。
By
Anonymous, at 10:47 AM
想提升托福考試成績,哈佛托福名師能助您一臂之力,另外多益的名師,讓您toeic能提升外,更讓您多益考試無往不利。
By
Anonymous, at 10:48 AM
康福搬家公司給您最精緻搬家服務,主要區域在台北搬家及桃園搬家,除了搬家另外還有打包服務並備有包裝材料供選購。
By
Anonymous, at 10:49 AM
正大會計師事務所提供企業教育訓練服務,由專業的會計師給多專業的指導。
By
Anonymous, at 10:52 AM
派報社除了夾報及發傳單外,還要能代客印製,所以多功能事務機是必備的工具,尤其是印表機、影印機及傳真機功能更是不可少。
By
Anonymous, at 10:52 AM
迪崴室內設計公司一向秉持的設計理念—追求美感的貫徹性及協調性,創造許多不凡的室內設計作品。
By
Anonymous, at 10:53 AM
大台北精緻搬家是有搬家公司執照的專業搬家公司,除了提供大台北搬家外,還有全省搬家及回頭車等搬家服務項目,搬家時別忘來電洽詢。
By
Anonymous, at 10:54 AM
室內裝修必用的磁磚,寶威備有各式的瓷磚及馬賽克磁磚供參觀選購。
By
Anonymous, at 10:54 AM
瑪莉蓮調整型內衣,是產後塑身的利器,送給產後新手媽媽的理想禮品,塑身衣能協助回復好身材。
By
Anonymous, at 10:54 AM
搬家推薦選大愛精緻搬家公司,本搬家公司提供有全省搬家、回頭車等搬家服務,並擁有專業搬家技術及搬家打包技巧。
By
Anonymous, at 10:55 AM
現代人坐月子的方式,除了到坐月子中心,還可以請幫傭到家裏幫忙,也就是到府坐月子,或者請保母協助照護新生兒,以減少新手媽媽的壓力。
By
Anonymous, at 10:55 AM
Post a Comment
Links to this post:
Create a Link
<< Home