Hello all and thanks for the answers!
gsc4 :
No I'm certainly not implying that the design of DotNetNuke could somehow be at fault here, no way. I was just concern with the "potential" vulnerability that's all!
anthony-glenwright :
Admin users *can* upload modules if they are given the right to do so(and not necessarily given the Host password)! Like the others seem to say is that the responsibility comes back to the Host Company, making sure they do not give those rights to those admins!
ErikVB :
"...the only way to handle this in a secure way is to not allow admins of subportals to upload module definitions. This is something that should be done by the host, after the host inspected the modules to ensure that the modules cause no security issues for the other subportals. In my opinion the host should be able to go thru the source for this...."
Wouldn't that be problematic, to a certain point, having the hosting company viewing your source code for each and every module you upload(or send them) and what about simple PA that you simply bought off snowcovered like this one:
http://www.snowcovered.com/snowcovered2/user_uploads/QuickSQLGrids1.8_viewlet_swf.html
without the source code?
I understand everyone's answer and it all comes down to the HOST responsibility to not allow module uploading until its been *approved* nor am I questionning DNN's design/architecture.
I was simply pointing out a scenario that could/would happen on a regular basis, if the hosting companies are already busy and can't give you proper support, imagine the hell of having to call them each time you need to upload a module and then *wait* for their approval. What are the chances they have developpers that work there *waiting just for that* checking your code!
The reason I'm asking is because it hit me while I was developping a module, in fact its a simple module like the one in the link I gave you. You type an SQL query in a TEXTAREA field and it links that to a datagrid nothing complicated and not dangerous(well unless used maliciously of course) so that's how it flashed me...
The great thing I like about DNN is in fact the possibility to develop modules and upload the PA once your done. If in the process I have to *wait* for that module to be approved then that could become a problem for some people and changing Host company might not be a possibility and/or workaround.
As a developper for Company C, all I want is to create modules that are relevent for my web site and give myself some flexibility. I don't know how many sub-portals will be hosted along with my web site. Should I take this into consideration, me the simple programmer, while I create modules ? Should I not develop these kinda of modules ?
As for ErikVB's suggestion of using seperate instances of DNN, what if they all point to one SQL Server wont I still be able to execute queries allowing me to view all the databases on the SQL Server ?
Anyway...this is not a rant in any way/form I'm just sharing my concern and want to learn from your suggestions that's all!
Many thanks to all
Sincerely
Vince