How can someone physically change a javascript file? It's completely locked down and i've no idea how someone would be able to do this through a web browser.
Rob
How can someone physically change a javascript file? It's completely locked down and i've no idea how someone would be able to do this through a web browser.
Rob
Phished / Hacked your ftp credentials..
Obtained root credentials by exploiting database vulnerabilities etc etc..
Do not focus on the actual altered file (that is the payload distributor, if the changes were malicious) but focus on how the gained access on the server..
(1) With shared hosting, it could be from anyone's account (if you don't have security set correctly, or if any of them are administrators).
(2) Anyone who has access to the server (hardware admins, software admins, server owner etc, if you're renting)
(3) Any compromised script you're using - including your own, or pre-made ones. Form-mailer scripts are often cracked (usually due to lack of escaping on inputs). Anything that calls system commands or inserts into SQL without escaping input can be susceptible.
(4) If your credentials have been compromised - email and ftp are sent plain-text, it's easy enough to sniff the username/password if it's the same one as you use to access the server (especially if you log in from shared networks - computer labs, school or work networks).
(5) Trojan or malicious software on your machine logging keystrokes or decoding passwords decoded from internal storage.
Someone with knowledge of the JS file, and some guesses at where it's stored can easily start messing around with it through a cracked script (#3). The other ones are pretty self explanatory :)