Need Help with SSH to remove iframe virus Please!

Discussion regarding Joomla! 1.5 security issues.
Joomla! Vulnerable Extensions: http://feeds.joomla.org/JoomlaSecurityV ... Extensions

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
sdballer
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Jan 18, 2009 4:48 am

Need Help with SSH to remove iframe virus Please!

Post by sdballer » Fri Apr 30, 2010 1:39 am

How can I search ssh and remove:

<iframe src="[mod edit removed link]" width=0 height=0 style="hidden" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src="" width=0 height=0 style="hidden" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>

the first part of http://XXXXXX is changing always.

thank you.
Last edited by PhilD on Fri Apr 30, 2010 3:40 am, edited 1 time in total.
Reason: posting of exploit code or links to exploited sites not allowed in forums

User avatar
ChiefGoFor
Joomla! Champion
Joomla! Champion
Posts: 5614
Joined: Tue Sep 13, 2005 12:22 am
Location: Omaha, Nebraska, USA
Contact:

Re: Need Help with SSH to remove iframe virus Please!

Post by ChiefGoFor » Fri Apr 30, 2010 2:47 am

These types of hacks are never any fun. If you have a backup from just before the hack, I would go with that route. Even if you clean up all of the iframes left behind, who is to say that they did not leave a backdoor open to get back in later and do it again?

But, you might want to try using a grep statement to find all of the iframe statements.

Code: Select all

grep -rn "<iframe" *
Note: Not all of the results will be the hackers doing. Some files will legitimately have iframes in them... but it will be easy to tell what is legit and what is not.
Joomla! ...because open source matters
"Try to answer two questions for every one question you ask." - Me

User avatar
PhilD
Joomla! Hero
Joomla! Hero
Posts: 2737
Joined: Sat Oct 21, 2006 10:20 pm
Location: Wisconsin USA
Contact:

Re: Need Help with SSH to remove iframe virus Please!

Post by PhilD » Fri Apr 30, 2010 3:42 am

To best repair a hacked site follow the checklist below. Removing the iframes probably will not remove the entire hack or the reason it was hacked in the first place.

[ ] Run the forum post assistant and security tool Instructions available here Post the results here so we can have a look at it.

[ ] Ensure you have the latest version of Joomla. Download the latest full version of Joomla and use it to replace the core files. Only by replacing all files in the installation (including extensions and templates) can you be sure to remove the backdoors inserted and hidden in files.[/b]

[ ] Review Vulnerable Extensions List and update or remove (if no update is available and vulnerable extensions.

[ ] Review and action Security Checklist checklist 7 make sure you've gone through all of the steps, not just the easy ones!!

[ ] Change all passwords and if possible user names for the website host control panel and your Joomla site.

[ ] Use proper permissions on files and directories. They should never be 777, but ideal is 644 and 755

[ ] For the malicious code topic
PhilD

User avatar
mandville
Joomla! Master
Joomla! Master
Posts: 15152
Joined: Mon Mar 20, 2006 1:56 am
Location: The Girly Side of Joomla in Sussex

Re: Need Help with SSH to remove iframe virus Please!

Post by mandville » Mon May 17, 2010 6:38 pm

topic locked due to no response from original poster and age/changed code of topic - see http://forum.joomla.org/viewtopic.php?f=432&t=509319
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be reported, added to the foe list and possibly just deleted
{VEL Team Leader}{TM Auditor }{ Showcase & Security forums Moderator}


Locked

Return to “Security in Joomla! 1.5”