Re: ocaholic.ch blocked by chrome
#7
Edit: ui the post ended up longer than intended and sounds like a consultant. Feel free to edit away useless and inappropriate parts
Okay to be honest I don't know how your ad system looks like.
Disclaimer
I'm not a specialist regarding web security. What I'm suggesting could be entirely wrong or outdated. It's simply based on the things I believe to know and read about.
Disclaimer end
As far as i know many of the hosted websites offer site space to an ad company (Google, etc.). The ad data is hosted at the ad provider and simply loaded as part of the website. So if an attacker is able to compromise the ad provider, he can compromise all the websites displaying the ads.
In case you host all the ad data yourself then the situation looks a bit different and would likely mean a lot more work for you
Finding it can be rather difficult especially if it is in the end in a js that loads data from another host, which again would mean that it wouldn't be your website that has to be compromised. Also good luck finding an exploit hidden in a picture or flash animation.
Finding out how it got there can also very tricky (even if you still have the logs :p ). Again it also could be that the legitimate ad data was already compromised before you got it from your legitimate source, or you got it of a seemingly legitimate source, etc., etc. It could be also a misconfiguration (as you pointed out), as well as "weak" authentication of an admin account, usually weak, guessable, brute-forceable, easy resetable (especially when the reset email account is hacked) passwords. Generally users use 3-5 passwords for all the accounts, I currently track something like 50+ accounts for myself. The attacker could also use a 0-day exploit to gain access, good luck detecting that
Conclusions
The analysis of an incident can be very time consuming.
You don't necessary have to be to blame since it could be sideloaded.
All you can do is trying to apply best practices with the resources you have to provide appropriate security for the service you provide.