Redirection Trojan Problem

alexweb

Registered
Oct 17, 2017
3
0
1
Alexandria , Egypt
cPanel Access Level
Reseller Owner
Hello,
I have very strange problem .
I am trying to solve this for many months now , and no way :(
I have VPS server and I sell hosting to multiple clients .
I found a problem with specific accounts on my VPS , when I access : website.com/any_random_letters
which should gives 404 page .
it redirect me to many ad pages fast .
first page is : - Removed -
and sometimes it shows porn ads :(
I have made scan for this account , and for whole server , and it's clean
I have searched for rapidyl trojan , and they only talk how to remove it from pc !
The strange thing is :
This problem happens only from my local country , my hosting company tested this many times , and they say that there is no redirection from their side !
Do you have any advice for me
Thanks in advance
 
Last edited by a moderator:

cPWilliamL

cP Technical Analyst II
Staff member
May 15, 2017
258
30
103
America
cPanel Access Level
Root Administrator
I'm sorry to hear that @alexweb. I'd definitely recommend reaching out to a developer or security professional to investigate further; this is just one symptom of the infection. You should check your `.htaccess' files for any strange redirects; however, I feel the malicious code is likely is in your database, perhaps a custom 404 page. It's also possible to be a combination of physical files and code in your database. If you have database backups, you may just try reverting until you no longer see the issue, then check the differences. I'd also recommend reinstalling the core WordPress files and the theme/plugins.
Updating WordPress « WordPress Codex

As well, `strace'ing Apache while visiting the malicious 404 redirect should allow you to see the specific database queries which may lead you to the specific page ID's responsible for the redirect, but this will be a lot of data to read through.
 

cPWilliamL

cP Technical Analyst II
Staff member
May 15, 2017
258
30
103
America
cPanel Access Level
Root Administrator
Also it's static website not wp !
That's even stranger. I apologize for assuming it was WordPress. If it can't be found in the static files themselves, it may be pulled dynamically from remote JS resources. Otherwise, it would seem the malicious redirects are coming from your computer or ISP. I would recommend testing from a different computer, and with a VPN and perhaps Google DNS, to rule out all possibilities.
 

alexweb

Registered
Oct 17, 2017
3
0
1
Alexandria , Egypt
cPanel Access Level
Reseller Owner
Many thanks for your reply.
In fact this is really strange problem as I told you.
Regarding the possibility of my PC is infected ..
This problem happens from multiple locations , multiple devices , multiple ISP , but all of them are in my local country.
When I test with VPN from the same PC the problem disappear !