ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » MQ Security

Post new topic  Reply to topic
 MQ Security « View previous topic :: View next topic » 
Author Message
shsiow
PostPosted: Thu Sep 01, 2005 7:13 pm    Post subject: MQ Security Reply with quote

Newbie

Joined: 01 Sep 2005
Posts: 7

I am facing this "abnormal" security behavior that I hope someone will be able to help.

My MQ is V6 and running on Windows Server 2003 Enterprise Edition.

I found that whenever I create a Windows Service and install it to any machine in my network, as long as it is running using the LocalSystem account, I would be able to have full access to my MQ server/Queue Manager without any other authentication.

I am not sure if this is normal or what, someone please enlighten me.


Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 01, 2005 7:19 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Is the LocalSystem account part of the mqm group ??
Back to top
View user's profile Send private message Send e-mail
shsiow
PostPosted: Thu Sep 01, 2005 7:27 pm    Post subject: Reply with quote

Newbie

Joined: 01 Sep 2005
Posts: 7

Nope, the LocalSystem is the actually the local user in the client machine, not the MQ server.

I am aware that every machine will have this generic "LocalSystem" account, anyway, LocalSystem is not in administrator group or mqm group in the Mq server.

Any ideas?

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 01, 2005 7:38 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Has authentication been turned off ?
QMGR definition wise ? Environment variable wise ?
Is there an mcauser in the channel definition >
Back to top
View user's profile Send private message Send e-mail
shsiow
PostPosted: Thu Sep 01, 2005 7:42 pm    Post subject: Reply with quote

Newbie

Joined: 01 Sep 2005
Posts: 7

I am not sure if authentication had been turned off or not. How to check?

QMGR definition? Not sure too,
Environment variable? Not sure too, sorry, I am newbie

as for MCAUser, this I am sure, there aren't any of it. BTW, the channel that I am talking about here is the default Server Connection, which is "SYSTEM.DEF.SVRCONN".


Thanks Again
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 01, 2005 7:57 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

shsiow wrote:
I am not sure if authentication had been turned off or not. How to check?

QMGR definition? Not sure too,
Environment variable? Not sure too, sorry, I am newbie

as for MCAUser, this I am sure, there aren't any of it. BTW, the channel that I am talking about here is the default Server Connection, which is "SYSTEM.DEF.SVRCONN".


Thanks Again


Read the security and admin manuals. !

This will give you an indication as to where to start looking
Back to top
View user's profile Send private message Send e-mail
shsiow
PostPosted: Thu Sep 01, 2005 9:36 pm    Post subject: Reply with quote

Newbie

Joined: 01 Sep 2005
Posts: 7

I read. But cann't get any clue especially regarding Windows. Info there is way too high level for me

I just want to know how to secure it properly so that all connection to the MQ server will need some kind of authentication. Please help


Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Sep 02, 2005 3:46 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I think you will find that if someone logs on as a local administrator, the same thing will be true.

You should secure your SVRCONN (well, all) channels with SSL, and be very careful where you put your certificates.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hopsala
PostPosted: Fri Sep 02, 2005 4:52 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

shshiow wrote:
I read. But cann't get any clue especially regarding Windows. Info there is way too high level for me

I just want to know how to secure it properly so that all connection to the MQ server will need some kind of authentication. Please help

Listen, we would love to help you if this was a matter of "yea, just type CREATE SECURITY CHL(MQ1, MQ2) and you're good to go!" (FYI, this is not a real MQ command!). Thing is, making two channels work together with SSL is not trivial - it's not difficult, but it isn't trivial as well; Embrace the fact this will take you at least one week to figure this out top-to-bottom.
(Furthermore, this has been discussed here many a-time, searching takes half the time of posting questions)

However, since I have a reputation of being a nice guy - I will aid you in your hour of need; this is the gyst of what you should do, but it's all very platform-specific so I can't give you the details, you still HAVE to read the manuals, and search the forum:

1. Create certificates: a public CA cert, a private cert for client, a private cert for QM.
2. Put certs into cert stores: on the client machine put public CA cert and private client cert, on server machine put public CA cert and private QM cert.
3. Set SVRCONN to work with SSL.
4. Set client to work with SSL.

You should also take into consideration using the SSLPEER parm.

Enjoy!
Back to top
View user's profile Send private message
shsiow
PostPosted: Mon Sep 05, 2005 2:42 am    Post subject: Reply with quote

Newbie

Joined: 01 Sep 2005
Posts: 7

Ok. I think we got diverted too far from it. Let me clarify it once more

Like I say, I am facing this "abnormal" security behavior.

My MQ is V6 and running on Windows Server 2003 Enterprise Edition. IT JOIN MY COMPANY DOMAIN. MY IBM MQService was started with LOCALSYSTEM account.

I found that whenever I create a Windows Service and install it to ANY machine in my network that JOIN THE SAME DOMAIN WITH THE MQ , as long as it is running using the LocalSystem account, I would be able to have full access to my MQ server/Queue Manager without any other authentication.

LOCALSYSTEM IS NOT in mgm group.

I NEED TO KNOW IF THIS IS NORMAL OR NOT.


Thanks
Back to top
View user's profile Send private message
hopsala
PostPosted: Mon Sep 05, 2005 3:51 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

Well, that's why
fjb_saper wrote:
Read the security and admin manuals. !

Look, it's all very simple - once you connect via channel connection, default behavior is that the user is passed from the client machine to the qm. In your case, it means that the qm receives "LocalSystem" of that domain as a user from the channel and is thus authorized to do anything it likes.
Naturally, this is a security breach, since there's no authentication here that the user sent from the client is indeed the same as the local - it's simply passed as text. (this is OS dependant, but the general picture remains throughout)

Anyway, your only option of securing channels is using SSL, look at my post and many other posts on this forum on how to do this - this has been discussed here a thousand times and more. You should also read the Clients manual for further details.
(p.s there's also the option of writing/buying a security exit, up to you)
Back to top
View user's profile Send private message
shsiow
PostPosted: Mon Sep 05, 2005 7:02 am    Post subject: Reply with quote

Newbie

Joined: 01 Sep 2005
Posts: 7

Quote:
Look, it's all very simple - once you connect via channel connection, default behavior is that the user is passed from the client machine to the qm. In your case, it means that the qm receives "LocalSystem" of that domain as a user from the channel and is thus authorized to do anything it likes.
Naturally, this is a security breach, since there's no authentication here that the user sent from the client is indeed the same as the local - it's simply passed as text. (this is OS dependant, but the general picture remains throughout)



Hmmm... Now it give me slightly better idea on how this "abnormality" is happening. Thanks for that.

Sound like my only choice in this case will be SSL, I did check the manual, it describe on how we can test by using some test cert/self-signed cert. Will try that soon. However, just for my understanding, once I need to put it for production use, does it mean I need to get some authority (e.g VeriSign, Entrust.net) to sign a cert for me, right? Is that is going to cost me BIG $$$? Sorry but I am working in a small time company that don't really can afford that.
Back to top
View user's profile Send private message
hopsala
PostPosted: Mon Sep 05, 2005 4:05 pm    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

shshiow wrote:
does it mean I need to get some authority (e.g VeriSign, Entrust.net) to sign a cert for me, right? Is that is going to cost me BIG $$$?

You probably already have a CA somewhere on site and don't even know it - I think MSCS, for example, can issue production certificates, and I know there are many other products who can; sniff around your company and see if you can find one.
Otherwise, although i've never tried this, it doesn't seem expensive - I just googled "buy CA certificates" and prices range from 30-200$, no higher.
Maybe others who have experience with purchasing certs can help you, I've always had an MSCS or RACF hanging around.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Sep 05, 2005 7:21 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi shsiow,

I thought you should know that SSL is not your only choice. Capitalware sells 2 MQ security products that are targeted to fill this void. Click on the product name to learn more:

- MQ Authenticate User Security Exit
- MQ Standard Security Exit

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ Security
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.