 | 
November 28th, 2008, 06:32 AM
| | Newbie | | Join Date: Nov 2008
Posts: 7
| | What is ActiveXobject ?
Hi,
I am using ActiveXobject as
var xp = new ActiveXObject("WPrint.PrintCtl");
in my JSP application.
I have heard that using ActiveXobject may be dangerous for my application as i am using Bluetooth mode of commmunication.Can anyone tell me why ActiveXobject is dengerous ?
Regards:
Rohit Kumar
Last edited by Nepomuk; November 28th, 2008 at 04:19 PM.
Reason: Moved to JavaScript
| 
November 28th, 2008, 11:14 AM
|  | Lives Here | | Join Date: Jan 2007 Location: India (West-Bengal) Age: 25
Posts: 2,164
| |
this is JavaScript related question ....
| 
November 28th, 2008, 05:46 PM
|  | Site Moderator | | Join Date: Nov 2006 Location: UK
Posts: 12,964
| |
ActiveX is usually limited to Internet Explorer on Windows. It's dangerous because it allows access to the operating system outside the browser sandbox. Any that you use should be from trusted sources and will require changes to your security settings.
| 
December 1st, 2008, 07:09 AM
| | Newbie | | Join Date: Nov 2008
Posts: 7
| | Quote:
Originally Posted by acoder ActiveX is usually limited to Internet Explorer on Windows. It's dangerous because it allows access to the operating system outside the browser sandbox. Any that you use should be from trusted sources and will require changes to your security settings. | But i am not using Internet Explorer on PDA (containing Windows Mobile 5.0).Instead i am using Lotus Expeditor (IBM product),which has it's own browser and our application runs over it.Will ActiveXobject be dengerous now?
| 
December 1st, 2008, 08:36 AM
|  | Site Moderator | | Join Date: Nov 2006 Location: UK
Posts: 12,964
| |
I'm not familiar with Lotus Expeditor. I'm not sure how it integrates ActiveX, so can't really comment on how effective it is with regards to security. You'd have better luck asking IBM.
| 
December 1st, 2008, 09:13 AM
|  | Moderator | | Join Date: May 2007 Location: Munich, Germany Age: 36
Posts: 3,448
| |
i'm not familiar with Lotus Expeditor too ... but as long as your application runs in a browser the potential security issues with activeX should be the same as with a normal browser. typically a browser doesn't allow any program to break out of the browser's sandbox so you might consider the browser your runtime-environment and the code that runs in a browserapp just has very limited access to machine-resources like file-system or similar security related resources. java applets might have some more possibilities but they run within the JVM and are even limited to the JVM's sandbox ... while an activeX-control runs outside of any sandbox and might have direct access to all windows-ressources ... so everytime, when you use such a control you have a potential security risk unless you have really trusted controls, that could be verified, signed etc. ... so that it needn't be a real issue ... just make sure that you could trust the used controls ;)
kind regards
| 
December 1st, 2008, 11:17 AM
| | Newbie | | Join Date: Nov 2008
Posts: 7
| | Quote:
Originally Posted by gits i'm not familiar with Lotus Expeditor too ... but as long as your application runs in a browser the potential security issues with activeX should be the same as with a normal browser. typically a browser doesn't allow any program to break out of the browser's sandbox so you might consider the browser your runtime-environment and the code that runs in a browserapp just has very limited access to machine-resources like file-system or similar security related resources. java applets might have some more possibilities but they run within the JVM and are even limited to the JVM's sandbox ... while an activeX-control runs outside of any sandbox and might have direct access to all windows-ressources ... so everytime, when you use such a control you have a potential security risk unless you have really trusted controls, that could be verified, signed etc. ... so that it needn't be a real issue ... just make sure that you could trust the used controls ;)
kind regards |
But i use ActiveXobjet control in Bluetooth mode of communiction.GPRS does not come in picture at that time.So no use of Internet Explorer is there.Now will ActiveX control be dengerous in this situation?
| 
December 1st, 2008, 01:45 PM
|  | Moderator | | Join Date: May 2007 Location: Munich, Germany Age: 36
Posts: 3,448
| |
i'm confused now ... whatfor do you need the activeX control now? is it part of the application or is it used for the communication only? bluetooth itself has its own drawbacks, and when you have a insecure connection then it doesn't matter whether you run an activeX-control or whatever. when the activeX control could allow further access to your PDA like adresses, data, whatever ... then the control could open the next door to the attacker, but in case you avoid unauthorized connections then it shouldn't be a problem at all. i guess the application just runs locally on the PDA? ...
| 
December 2nd, 2008, 06:52 AM
| | Newbie | | Join Date: Nov 2008
Posts: 7
| |
ActiveX control is the part of application.But It is used only one time when user wants to take print out of that page.There is a form on that JSP page,in which user fills all details and clicks on "print" button.Now bluetooth & ActiveX control comes into picture.By clicking on print button a bluetooth connection is establised between PDA & Bluetooth printer.When connection is establised properly,the desired print out comes from the printer.
Yes,my application runs locally on PDA after downloading of fresh data to PDA.And we need GPRS connection for this.Actually we need GPRS connection only 2 times.(1-When fresh data is downloaded on PDA.2- When this data (after several modifications) is uploaded back to server.).Between these two points my appliocation runs locally on PDA.
| 
December 2nd, 2008, 06:53 AM
| | Newbie | | Join Date: Nov 2008
Posts: 7
| | Quote:
Originally Posted by gits i'm confused now ... whatfor do you need the activeX control now? is it part of the application or is it used for the communication only? bluetooth itself has its own drawbacks, and when you have a insecure connection then it doesn't matter whether you run an activeX-control or whatever. when the activeX control could allow further access to your PDA like adresses, data, whatever ... then the control could open the next door to the attacker, but in case you avoid unauthorized connections then it shouldn't be a problem at all. i guess the application just runs locally on the PDA? ... |
ActiveX control is the part of application.But It is used only one time when user wants to take print out of that page.There is a form on that JSP page,in which user fills all details and clicks on " print" button.Now bluetooth & ActiveX control comes into picture.By clicking on print button a bluetooth connection is establised between PDA & Bluetooth printer.When connection is establised properly,the desired print out comes from the printer.
Yes,my application runs locally on PDA after downloading of fresh data to PDA.And we need GPRS connection for this.Actually we need GPRS connection only 2 times.( 1-When fresh data is downloaded on PDA. 2- When this data (after several modifications) is uploaded back to server.).Between these two points my appliocation runs locally on PDA.
| 
December 2nd, 2008, 09:32 AM
|  | Moderator | | Join Date: May 2007 Location: Munich, Germany Age: 36
Posts: 3,448
| |
so the only security risk i could see at the moment would be: when the bluetooth connection is established your PDA might be visible and an atacker could try to connect to it ... now the activeX control might be insecure and allow the attacker to steal something or load something up to the PDA ... a trojan or whatever ... but i guess that is quite more hype then reality :) ... first i think its a very short connection? next i guess the bluetooth service of the PDA is just invoked when it is needed and not always running? The device should be hidden all the time? etc. ... the more problematic then the activeX control in your case is just the bluetooth useage itself that just need to be secured as good as possible.
kind regards
| 
December 3rd, 2008, 10:38 AM
| | Newbie | | Join Date: Nov 2008
Posts: 7
| | Quote:
Originally Posted by gits so the only security risk i could see at the moment would be: when the bluetooth connection is established your PDA might be visible and an atacker could try to connect to it ... now the activeX control might be insecure and allow the attacker to steal something or load something up to the PDA ... a trojan or whatever ... but i guess that is quite more hype then reality :) ... first i think its a very short connection? next i guess the bluetooth service of the PDA is just invoked when it is needed and not always running? The device should be hidden all the time? etc. ... the more problematic then the activeX control in your case is just the bluetooth useage itself that just need to be secured as good as possible.
kind regards | Ok.Thanx for your suggestion.
Last edited by nitinsingh1; December 3rd, 2008 at 10:39 AM.
Reason: spelling mistake
|  | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 205,248 network members.
|