Keleth
03-02-2010, 03:22 AM
Hey, was hoping someone might lend me a thought on a security matter. I know its not the direct privy this forum, but a lot of knowledgeable people here. I tried searching through previous threads, but didn't really find anything.
Recently (a week ago), on two different sites I run, on two different servers, I noticed malicious javascript was injected into every file "index.php" and any file ending with a .js extension. Unfortunately, I'm no pro at these things, and I'm trying to figure out what happened and how to avoid it in the future.
I tried looking through ftp/access logs, and to the best I can find, there were no unusual accesses. My passwords are all at least two dozen characters long, random alpha-numerics, and I'm fairly certain I don't have a key logger, as virus scans with AVG and MBAM haven't come up with anything (plus other sites I also run are not infected). I've checked permissions on all files (read for everyone, write only for the owner). There's no code that allows for sql injection on one site, and on the other, there is no malicious SQL inserted. Neither site makes any use of GET variables, though both do use POST for various things.
I understand this is what security professionals are hired for, but I guess I just don't notice other programmers going through these same problems and I wonder if my inexperience is getting the better of me. Could anyone relay any words of wisdom?
Recently (a week ago), on two different sites I run, on two different servers, I noticed malicious javascript was injected into every file "index.php" and any file ending with a .js extension. Unfortunately, I'm no pro at these things, and I'm trying to figure out what happened and how to avoid it in the future.
I tried looking through ftp/access logs, and to the best I can find, there were no unusual accesses. My passwords are all at least two dozen characters long, random alpha-numerics, and I'm fairly certain I don't have a key logger, as virus scans with AVG and MBAM haven't come up with anything (plus other sites I also run are not infected). I've checked permissions on all files (read for everyone, write only for the owner). There's no code that allows for sql injection on one site, and on the other, there is no malicious SQL inserted. Neither site makes any use of GET variables, though both do use POST for various things.
I understand this is what security professionals are hired for, but I guess I just don't notice other programmers going through these same problems and I wonder if my inexperience is getting the better of me. Could anyone relay any words of wisdom?