Howdy folks,
This week I went together with a colleague to a customer where there were some troubles with the database mirroring on SQL 2005. It a high available mirror and the problem was it didn't work 100% of the time. Some times something like a split brain occurs. The database is recovering as well on the mirror as on the principal.
The thing we noticed was in the mirroring monitor that the server who had the principal role didn't have a successful connection to the witness server.
First thing we checked was the network. The situation goes as follows. The servers are in workgroup mode and there is a dedicated Gigabit connection between those server to sent the transactions to both servers. All servers were also defined in the host file so even when the DNS goes down it should work.
After crusing down the Internet I found a post in a forum of somebody with the same problem. The problem was solved for this guy by rebooting the system. So we restarted the SQL service of the witness server and it worked.
So that needed some further investigation. We created a new database, made it mirror and the same scenario ... no witness on the principal, only for that database. We restarted the SQL service on the witness and it worked :-)
Then we did the ultimate test, we stopped the endpoint on the server for which the server was mirror for the databases in production and principal for our test database. (So there was no impact for production). First time we tested it, everything went fine and the test database failed over (and we wrote a record in it). The second time we tried it, it failed and a split brain like situation occured. Okay, there was no problem to bring the test database online and since it is in sync mode no transaction could have been written to one side and not to the other.
The odd thing is that the production server had to be turned off that evening and the automatic fail over worked without any problems.
So some further investigations will be required. Currently we are thinking in the direction of cummulative updates. When we find it I'll make a post about it.
Saturday, November 29, 2008
Monday, November 24, 2008
Converting a disk from FAT32 to NTFS
Today I had to convert my external disk form FAT32 to NTFS. I was confronted with the problem that an ISO file was 9GB and FAT32 couldn't handle that.
Convert is a tool that is part of your Windows OS.
Here is the syntax to convert the disk:
>convert diskletter: /fs:NTFS [enter]
After starting the convert tool you'll have to enter the disk label and the conversion starts. First it checks the disk for errors and than the actual conversion starts.
Friday, October 31, 2008
A usefull trick used at our customers
Everybody in IT knows it CLI is your friend :)
A little trick used at our customers to get a CLI with sufficient rights is:
runas /user:username@domain /netonly cmd
This gives you your little box executed with the rights of that user in that domain.
A little trick used at our customers to get a CLI with sufficient rights is:
runas /user:username@domain /netonly cmd
This gives you your little box executed with the rights of that user in that domain.
Friday, October 24, 2008
OWASP
The 23th of October I went to a OWASP meeting. If you're thinking about going to one, don't hesitate it is worth your time.
The first talk was "Building a tool for Security consultants: A story of a customized source code scanner" by Dinis Cruz. Even when you are not immediately going to audit code, it is worth to go and listen to Dinis. Although I just program for me, I still like to do it secure and the ideas I picked up are surely going to help me doing so.
The second talk was "Logging: not just a good idea" by Eddy Vanlerberghe. I didn't know what to expect from this talk and it wasn't the greatest presentation ever but it was ok. The fact is that we have to think about our logs, the way we store them and do the exercise to correlate logs of different systems to present as proof in a court of law. It is not so easy since you have to prove that your logs are genuine before you can use them and then there is the correlation.
If you're intrested in OWASP presentations you can go to the website www.owasp.tv there you can find up to 40 hours of presentations.
Wednesday, October 22, 2008
Doing some research
Howdy,
It has been a while since my last post but i have been busy. I've found a SQL injection vulnerabilty in a product and I am researching it. It is quite a major problem when you inject it returns login, password, server.
I will post more details later but now I have to contact the vendor.
It has been a while since my last post but i have been busy. I've found a SQL injection vulnerabilty in a product and I am researching it. It is quite a major problem when you inject it returns login, password, server.
I will post more details later but now I have to contact the vendor.
Tuesday, September 9, 2008
2nd Tuesday of the month @ microsoft
Howdy,
It is the second Tuesday of the month so a new series of patches have been released. I'll guess I'll be testing this one tomorrow:
http://www.microsoft.com/technet/security/bulletin/ms08-052.mspx
Since the rating is critical I'll guess we'll see some nice exploits for it.
It is the second Tuesday of the month so a new series of patches have been released. I'll guess I'll be testing this one tomorrow:
http://www.microsoft.com/technet/security/bulletin/ms08-052.mspx
Since the rating is critical I'll guess we'll see some nice exploits for it.
An interesting phone call
Yesterday was an interesting day I had a teleconference with two gentlemen who gave me a rather interesting insight in the inner workings of a big ISP who is hosting the website of one of our customers that I'll be auditing in the near future.
These two man wanted to talk to me about what my colleague and I will be testing for our customer. Since my colleague is on holiday I answered what I'll be doing on the servers and for the network part I answered that I was not the person to speak to.
They have apparently an issue with the fact that we would login as administrator on to the network appliances to check the configuration. Since it is not my call to make we agreed that they would send us some print outs and it is up to my colleague to decide if it is possible to do audit work on this. I personally think it is not acceptable since we are an independent party and have to obtain the information by our selves.
There is a second problem with this. The ISP is prepared to send me, a stranger they have never met, information about their firewalls and such by e-mail. Yes, this is something that will be in the end report to our customer, it is my due dilligence.
Just to see how far they go in the management of our customers environment I asked if they kept logs for each time they tested the clustered loadbalancers. Apparently they only tested their cluster once before it was put into production. They monitor it and have a spare ready in case one goes down. I asked them if they didn't test it on regular basis to see if it functions correctly but this was not necessary according to them since it is monitored in case it goes down.
It is for me the same problem as the guy who makes his back ups but never does a test on regular basis to see if they are any good.
These two man wanted to talk to me about what my colleague and I will be testing for our customer. Since my colleague is on holiday I answered what I'll be doing on the servers and for the network part I answered that I was not the person to speak to.
They have apparently an issue with the fact that we would login as administrator on to the network appliances to check the configuration. Since it is not my call to make we agreed that they would send us some print outs and it is up to my colleague to decide if it is possible to do audit work on this. I personally think it is not acceptable since we are an independent party and have to obtain the information by our selves.
There is a second problem with this. The ISP is prepared to send me, a stranger they have never met, information about their firewalls and such by e-mail. Yes, this is something that will be in the end report to our customer, it is my due dilligence.
Just to see how far they go in the management of our customers environment I asked if they kept logs for each time they tested the clustered loadbalancers. Apparently they only tested their cluster once before it was put into production. They monitor it and have a spare ready in case one goes down. I asked them if they didn't test it on regular basis to see if it functions correctly but this was not necessary according to them since it is monitored in case it goes down.
It is for me the same problem as the guy who makes his back ups but never does a test on regular basis to see if they are any good.
Subscribe to:
Posts (Atom)