Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: phranque
I have a website. It is more of an advertising medium. People pay about £40 or $60 to advertise what I specialise in on my site. However, I recently got a couple of emails from some "customers" (you'll see why the inverted commas are in there in a minute). They said that their advert had been taken down without any notification and the time was not due to expire. I found their advert but there was NO order details which is why they didn't get an email.
This is weird so I asked when they signed up and they said a Mr.X from my company did it for them. I am the only one working for my company, however, the name rang a bell. They had all done a deal with Mr.X after he got in contact with them and they all paid him 1/4 of the price of advertising. He set them up and username and password and made their adverts live on my site.
I found this very worrying as my code is VERY secure and noone could possibly get the passwords. Then I remembered the name they mentioned. After checking some past emails to my host, he was one of the people there. Now, in order for my code to interact with the database the code needs read and write permissions. The password is stored in the global.asa. The number they contacted Mr.X on was the mobile phone number of Mr.X.
I think he is reading the global.asa to get the, frequently changed, password and is selling advertising space on my site cheaply. I am corrently writing code to catch him in the act.
My question is this. How can we protect our sites and databases from our hosts? As well as doing the dirty on my site I think he is selling off customer lists. How do we protect our data? Any advice is appreciated.
You asked how? If I revealed that I'd be revealing a major security flaw on alot of systems. Needless to say, It's part of one of my jobs to know how to do it.
I've considered that approach. The problem was the server talk time and down time. There was also a problem which I wont go into. WAY TO COMPLICATED.
It's always a good idea to use one-way encryption.
There will be no decrypt funtion at all.
Something like: mypasss->HJkjhfs9d8fdh
And in the database you have:
...and so on.
And when somebody enters a password - you encrypt it and compare it with what you have in the password field.
There is no way to know the original password in that case.
That's how it's done on most systems.
My point was that unless whatever you have stored your data inside supports this type stuff natively then that type of security is only good as long as I can't just side-step it...
If you deployed this at the database-login stage then it's fairly secure but if this was moved into the application-login stage then the weak link becomes that I can probably get access to the database using the db login your code uses...
I'm in court (and hospital) tomorrow, a busy day :).
Anyway, I've just got of the phone with my lawyer. Appartently Mr.X is refusing to appear in court tomorrow. Boy will that make my day. If he does not appear then the hearing goes ahead as it would have. If he is let off :( then he will have to reappear to explain his actions. If he goes down :):):) then an arrest warrent will be produced and they will hunt him down like the dog he is :).
Nothing serious at hospital
It was! The was a 90% possibility of a tumor right near my brain. The test came back negative though :).
Anyway, back to the point in question.
Firstly, I can't post everything. Although I have been told by my laywer that a positive verdict will mean I can post what ever I want (including names), for Brett's piece of mind, I'm not going to mention the person or the company. I have recieved sticky's asking for the companies name. I am not giving it out. However, if someone is worried that my host might be the same one as their's, then send me a sticky with there location (e.g. Birmingham or Middlesex etc...) and the general colours of their website. I'll send reply with a 'it's possible' or a 'no'. I would only be worried if you host constantly reminds you of some of their BIG clients.
Right. As you can possibly guess I WON. No action was taken against the company, which is what I wanted, although it was advised that they monitor their staff more carefully. Mr.X was ordered to pay all the money he made out of the advertising to me. Damages were also awarded. £12,000 in total, which was mainly damages. He has been fired by the company and as a guesture of good will they have given me 2 years free hosting (worth around £16,000).
Me big :)ly :)ly.
Grand Total: £28,000 approx. Anyone for a loan ;).