Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

My turn for spam hijacking

Asked Modified Viewed 6,334 times
I
ImproperUsername
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
asked
Member

Over the past 48 hours, I have been having repeated problems with the news.php file being overwritten with this:
code hidden for security reasons/Kamillo


The site becomes overwhelmed with the external load, I guess, goes to error 503, and then I have to ask support to restart the application pool.

I installed the latest PHP-fusion files. I ran fusion-scan (which found nothing). I changed all my passwords. I doublechecked folder and file permissions.

Any other suggestions?
Edited by Kamillo on 23-08-2013 08:17,
0 replies

17 posts

K
Kamillo
K
------------------------------
PHP-Fusion PL Crew | Spam Cop | My Site
  • Senior Member, joined since
  • Contributed 244 posts on the community forums.
  • Started 23 threads in the forums
answered
Senior Member

http://www.php-fusion.co.uk/forum/viewthread.php?thread_id=32996&highlight=hack&pid=180869#post_180869
0 replies
I
ImproperUsername
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

I took yet another look at that post, and realized that I had overlooked removing third party infusions. This time, I did that, along with all the other recommendations.

Keeping my fingers crossed!
0 replies
T
Tyler
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

Hopefully that solved your issues...

Unfortunately it would have been nice to get a list of your 3rd party infusions so maybe we could compile a list of insecure addons and warn users to stay away from them...
0 replies
I
ImproperUsername
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

I removed these infusions:

*member_pages_pphotowidget_panel
*shoutbox_panel
*latest_articles_panel
*comment_include_panel


I have kept these that came with the official latest PHP-fusion install:

css_navigation_panel
forum_threads_list_panel
forum_threads_panel
latest_comments_panel
latest_downloads_panel
member_poll_panel
online_users_panel
user_info_panel
welcome_message_panel

And I kept:

fusionscan
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

The above code is targeting the login to hit the news bypassing permissions to post and not going through SQL. It uses cache because that's how phpfusion renders. Smart. But we need 1 user account to pull that.

Thanks for sharing the hack code. Well see it improvise our securities as well.
0 replies
S
supersonic
S
  • Junior Member, joined since
  • Contributed 31 posts on the community forums.
answered
Junior Member

yes many thanks for sharing the code , the developers can go over it and see if they can stop it in its tracks :) i would drop the whole site and install a good backup when last ok then go over all the code again to stop it .

that will then correct from last good restore point and should stop it but double check permissions and what user groups rights are set ;) if it still happens then pop up ya maintence page and wait for a fix least then they canny do any damage then
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

The code must reside in the server to work.
Unknown, where did you find the file in your server? Which folder? User submissions?
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Yes, can be stopped. Not difficult. Remarked for SQL methods. I will make a work around and submit under defender roadmap. Thanks!

Should hack appears please report it so we can shut the gap.
0 replies
I
ImproperUsername
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

I have PHP-fusion installed in a subdirectory:

publicHTML > PHPfusionDirectory

I have it on my reseller account that is on a Windows 2010 server. I know, Linux is better! Sometimes I have need of using NET or ASP. I made only the folders that have to be, writeable.

So far (keeping fingers crossed), the site remains OK since the last re-install.
0 replies
I
ImproperUsername
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

[I don't know if this will be helpful or not, but the first time this happened, the malicious code referenced the news.php file. When I reinstalled that time, I made a point of making that file read-only. When the site was hijacked again soon after, the malicious code referenced the PHP file that I posted with the code above (which is now hidden). I don't think that was a file that I made, and I didn't think to check its creation date (sorry). Regardless of the misleading name of the file, its code appeared to be a copy of news.php.]

Thank you, those of you on the PHP-fusion team, for your interest in this. I luvz PHP-fusion! It is so easy to use and to customize, it really has me spoiled.
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Doesn't look like a worms doing. Yes indeed it looks very much LWP::Simple! Thank you.

Improper, But Windows server? Can phpfusion installs on one? Last guy whom I know did it made a YouTube video complaining that the setup didn't even work. :)

Beware of IE8. It has a ton of security holes.
Edited by Chan on 24-08-2013 02:04,
0 replies
I
ImproperUsername
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

Quote



Improper, But Windows server? Can phpfusion installs on one? Last guy whom I know did it made a YouTube video complaining that the setup didn't even work. :)



I've had no difficulty installing it. Maybe I should make a YouTube video too.
0 replies
I
ImproperUsername
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

OK, I found the file overwritten again...trying to figure out how this is happening.
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

You have no mods or addons installed now at all?
Would be great if you had a log on the initial inserts aswell.
Any information we can get will help.

Until it get´s sorted you can add these to your php.ini to increase your protection.

allow_url_fopen=Off
allow_url_include=Off
disable_functions = apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, eval, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, mysql_pconnect, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode
0 replies
I
ImproperUsername
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

Domi, I sent you a PM.

I found that I did not have folder and file permissions set to read-only as I thought. Stupid Windows server makes that so much more difficult than Linux. However, I have finally gotten all set to read-only.

ETA: I removed fusionscan from infusions. It was the only "3rd party" infusion I still had installed. (fusionscan never revealed any issues with the site when I ran it)
Edited by ImproperUsername on 24-08-2013 03:52,
0 replies
I
ImproperUsername
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

A contributing factor, I discovered, was that the hosting company has site-wide Write Permissions enabled by default for all sites on Windows servers. I disabled that on mine, once I found where to do that on the control panel. (I had previously thought I had folders and files set to read-only, but alas that was not the case.)

When I asked support about why Write Permissions enabled is the default, the reply was that it was just easier that way, because so many of their users can not figure out how to get their scripts to work. :( -- this made me laugh, because they have been insisting that any vulnerabilities had to be strictly within the CMS, and were not their fault.

So far, over the past 10 or so hours, my site remains hijack-free. Although this has been exasperating, it has also been interesting.
Edited by ImproperUsername on 24-08-2013 15:19,
0 replies
S
supersonic
S
  • Junior Member, joined since
  • Contributed 31 posts on the community forums.
answered
Junior Member

very good reading , thanks for updating us im with you cannot understand why they would make that global full write perms to all madness
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 17 posts
  • Votes 0 votes
  • Topic users 6 members

6 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
K
K
------------------------------
PHP-Fusion PL Crew | Spam Cop | My Site
  • Senior Member, joined since
  • Contributed 244 posts on the community forums.
  • Started 23 threads in the forums
I
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
T
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
S
S
  • Junior Member, joined since
  • Contributed 31 posts on the community forums.

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet