Thread Tools Display Modes
06-03-09, 06:59 AM   #1
Bomyne
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 123
Security manager bug (?)

Really hope this is a bug and not by design.

I just updated the WoWI modual and as far as I know, the security manager should have reappeared to let me know it had changed and to regrant permissions. It didn't.
  Reply With Quote
06-03-09, 07:35 AM   #2
Tristanian
Andúril
Premium Member
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 279
I think it only fires when you install (not update) a module for the first time, but I could be wrong. Shirik can clarify once he is available
__________________
  Reply With Quote
06-03-09, 08:36 AM   #3
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
This is by design.

For unsigned modules, the only real way to compare them is by name -- if it were replaced by something else, I wouldn't have a good way of knowing. Furthermore, I don't want to annoy the user every time the file has legitimately changed.

So, for unsigned modules, security permissions are granted to a bundle name. Signed modules (while as of yet unimplemented) will be granted to their name and it will be enforced that they are signed by the same certificate.

If anyone feels this isn't a valid approach, feel free to offer suggestions. Keep in mind usability is important.
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote
06-03-09, 10:05 AM   #4
septor
A Flamescale Wyrmkin
Join Date: Jan 2007
Posts: 130
Is there anything in place to stop a module from playing nice at first to get permission and then change during an update to cause havoc?
  Reply With Quote
06-03-09, 06:42 PM   #5
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
At any time, during an update or otherwise, if a module's permission requests change, the user will be notified and approval will be requested again.

I encourage anyone with sufficient experience to try to break through the security manager through whatever exploit vector you can find. If any issues are found, please report them so they can be sealed.
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote
06-04-09, 02:49 PM   #6
Bomyne
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 123
Personally, I believe that everytime a minion mod changes, it should revoke all security permissions and allow the user to regrant it.

Just an opinion through
  Reply With Quote
06-04-09, 07:14 PM   #7
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
I'm not sure I agree.

It's not like you're granting a significant amount of permissions. You're saying specifically what folders and sites you trust. I don't see any good reason for someone whom would have trusted a module before to no longer trust it if the folders and sites it will be accessing haven't changed at all.

If we were talking about a native code permission here, it would be a different story, but I don't see any reason to trust access to a specific folder and then later go back on that trust.
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote
06-05-09, 09:45 AM   #8
Elhana
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 51
Technically having access to whole WoW folder would let addon read config.wtf file and send your wow login to it's author. It's not really an issue at all for me, but in WOWIvsWM thread there was a huge QQ about how reading that file would ruin people's privacy
I'll stick with oldschool opensource updater.
Enjoy.

Last edited by Elhana : 06-05-09 at 09:50 AM.
  Reply With Quote
06-05-09, 03:21 PM   #9
septor
A Flamescale Wyrmkin
Join Date: Jan 2007
Posts: 130
Originally Posted by Elhana View Post
Technically having access to whole WoW folder would let addon read config.wtf file and send your wow login to it's author. It's not really an issue at all for me, but in WOWIvsWM thread there was a huge QQ about how reading that file would ruin people's privacy
I'll stick with oldschool opensource updater.
Enjoy.
Technically it won't have access to your whole WoW folder unless you let it. The only place any type of addon updater needs access to is the Interface folder.

If a module is requesting access to the root WoW folder; deny it. I really believe this security manager was put in place for cases just like you described. If you're (not you personally) are foolish enough to grant permission to your crucial data; it's your own fault if that information gets sent back home.
  Reply With Quote
06-05-09, 03:54 PM   #10
Elhana
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 51
Originally Posted by septor View Post
If a module is requesting access to the root WoW folder; deny it.
WoWI minion module asks for WoW root permission
Attached Thumbnails
Click image for larger version

Name:	wowroot.JPG
Views:	229
Size:	43.8 KB
ID:	2816  

Last edited by Elhana : 06-05-09 at 03:59 PM.
  Reply With Quote
06-05-09, 09:25 PM   #11
septor
A Flamescale Wyrmkin
Join Date: Jan 2007
Posts: 130
Originally Posted by Elhana View Post
WoWI minion module asks for WoW root permission
Which counters my point exactly how?
  Reply With Quote
06-05-09, 09:38 PM   #12
Zaydok
An Aku'mai Servant
Join Date: May 2009
Posts: 36
I just wanted to chime in and say that I think the way it is setup now is fine. I think that so long as it asks for permission if and when new access is needed, that this is enough for me.
  Reply With Quote
06-05-09, 11:43 PM   #13
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
Originally Posted by Elhana View Post
Technically having access to whole WoW folder would let addon read config.wtf file and send your wow login to it's author. It's not really an issue at all for me, but in WOWIvsWM thread there was a huge QQ about how reading that file would ruin people's privacy
I'll stick with oldschool opensource updater.
Enjoy.
Get your facts straight before you go crazy.

Your login information is not stored in your config.wtf folder. At the very most, it only stores your account name.

I must have access to the WTF folder, period. There are certain addons that install files there, and not having access there would not let such addons be installed. If you would like to propose a secure solution that would not impact these addons, I am all ears.
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote
06-06-09, 03:18 AM   #14
Elhana
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 51
Originally Posted by Shirik View Post
I must have access to the WTF folder, period. There are certain addons that install files there, and not having access there would not let such addons be installed. If you would like to propose a secure solution that would not impact these addons, I am all ears.
Request Interface/ and WTF/Account/ access?
  Reply With Quote
06-06-09, 09:16 AM   #15
Vyper
A Rage Talon Dragon Guard
 
Vyper's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 317
Originally Posted by Shirik View Post
Get your facts straight before you go crazy.

Your login information is not stored in your config.wtf folder. At the very most, it only stores your account name.

I must have access to the WTF folder, period. There are certain addons that install files there, and not having access there would not let such addons be installed. If you would like to propose a secure solution that would not impact these addons, I am all ears.
First of, lets be clear, I'm not accusing anyone of anything, just observing.

The concern about access to the config.wtf file is valid. If the username is stored in that file you could easily collect usernames *again not saying you are*. One of the basic practices of maintaining a secure system is to never give that kind of information away, even when the user has provided a correct username and a bad password, you never tell them the password was bad. You just say invalid username/password combination.

Why? Because with a list of valid accounts it is much, much easier to crack a system.

Consider: to perform a normal brute force attack on a system, I must guess a username, then guess a password. Usernames are almost as tough to guess as passwords (in fact many have more secure usernames than their passwords).

If on the other hand, I am first able to generate a list of valid users, I can just start going through the dictionary, trying each word against each of these valid accounts. I'm sure to find a lot of people with insecure passwords, and I can do it much faster than trying to guess valid usernames along side.

My immediate suggestion (if possible with the security manager you are using) would be to grant access to the folder, but NOT the file.

Originally Posted by Elhana View Post
Request Interface/ and WTF/Account/ access?
This would also probably work, but would be tougher as some have multiple accounts.
  Reply With Quote
06-06-09, 10:06 AM   #16
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
Originally Posted by Vyper View Post
My immediate suggestion (if possible with the security manager you are using) would be to grant access to the folder, but NOT the file.
That would require a significant design change to the security manager, and would also result in a (probably significant) performance degradation as well.

I'll keep thinking about a way to change the permissions set, but I have to admit, it probably won't change. It's impossible for me to traverse the directory without permission, and I really don't like making assumptions about directory structures, even one that is well-known.

Despite this fact, it's going to boil down to what you approve. If you really don't trust a module, then why are you installing it in the first place? The security manager is meant as a final layer of protection, not a first line of defense. Fact of the matter is that even the most insecure modules will have to request permissions -- that's the idea behind it -- but if you give it access to C:\Windows then it's going to be able to wreak havoc (in reality this isn't true on many systems, but the idea is there). So if it's asking for something you don't trust, don't let it in (and tell the author of the module to fix permissions).

Based on the way this module is designed, I don't intend to change the permissions right now. Of course, I should hope that this module is a bit more trustworthy, considering you don't even know if I have some kind of backdoor floating around, or that the Minion core itself is watching your every move
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote
06-06-09, 05:05 PM   #17
Vyper
A Rage Talon Dragon Guard
 
Vyper's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 317
Originally Posted by Shirik View Post
That would require a significant design change to the security manager, and would also result in a (probably significant) performance degradation as well.
I thought it might, but it all depends on what your using ;-)

Originally Posted by Shirik View Post
I'll keep thinking about a way to change the permissions set, but I have to admit, it probably won't change. It's impossible for me to traverse the directory without permission, and I really don't like making assumptions about directory structures, even one that is well-known.
It's probably really not worth the effort. Really I was just responding to your earlier comment, which, at least to me, felt like you were saying "eh, that file doesn't contain passwords, so it doesn't matter who reads it". If I misinterpreted I apologize.

Originally Posted by Shirik View Post
Based on the way this module is designed, I don't intend to change the permissions right now. Of course, I should hope that this module is a bit more trustworthy, considering you don't even know if I have some kind of backdoor floating around, or that the Minion core itself is watching your every move
Well, maybe I do know. Remember, Java byte-code is a lot more reversible than some other choices ;-)
  Reply With Quote
06-06-09, 05:13 PM   #18
septor
A Flamescale Wyrmkin
Join Date: Jan 2007
Posts: 130
I can't help but wonder how many people used updaters before this and didn't voice the concerns they are voicing now. Do you really think that just because an updater only asked for your AddOns directory it wasn't fishing into the WTF folder?

At least this way you _KNOW_ what you're allowing to happen. I am not saying I totally agree with the access a module may require, but that's why I have the ability to not allow it access.
  Reply With Quote
06-06-09, 07:22 PM   #19
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
Originally Posted by Vyper View Post
Well, maybe I do know. Remember, Java byte-code is a lot more reversible than some other choices ;-)
You do realize you're talking to one of the two people that monitors incoming executable files at WoWInterface, right? I'm the one that disassembles them and determines their safety (and yes, I have found things others have missed, for example that one famous executable that waited 30 minutes before sending information off, avoiding detection by others -- I was the one that said "It may look safe, but something doesn't seem right about this code" ... and sure enough I was right )

In any case, while I might agree Java is fairly trivial to disassemble, I'm one that argues so is any other language. Do you really think you'll take the time and effort to go look into a module before installing it?
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote
06-06-09, 07:33 PM   #20
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 7,134
My view on it is pretty easy - Do you trust the site that you are getting the module for? Are you getting it from a reputable site (either their own site or here)? If the answer to both of those is "yes", then what's the problem? If the answer to either of them is "no", then why the hell are you downloading and installing it in the first place?

If you do a search for a module and see "WoWInterface Minion Module" on ihaxoru.com, it might not be the best place to get it from.

Only use modules from sites you trust. Only get modules from official sites. In three simple words: "Don't be dumb."

Last edited by Cairenn : 06-06-09 at 07:56 PM.
  Reply With Quote

WoWInterface » Site Forums » Minion » Archive » Security manager bug (?)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off