Skip to main content

Whaddya know how to fix Joomla CMS javascript latest vulnerabilities?

I have a client that have asked me to assist them fixing their "hacked" website through vulnerabilities of old version of Joomla CMS. I said you should always apply the latest release of Joomla, they are very active in patching security vulnerabilities.

I analyzed their website using an online scanning tool Unmask Parasites for quick security check. This is an excellent tool in addition to what I have right now. I can easily find out if the website is hacked through javascript injection. When you check your website, for example checking www.king.net you should see a report that says something like this "This page seems to be clean" or "This page seems to be suspicious" . If clean, you're in the right direction managing your website and nothing to worry abou. If suspicious, continue reading the report and look for Suspicious Inline Script.

For this specific Joomla vulnerability, here's an example of hijacking javascript codes. Please note, I removed the bad codes so I can only show the beginning of the script to guide you.
Here's suspicious javascript code sample:
eval (String.fromCharCode(118,97,114 ... etc.)

What happen if you have this javascript code injected to your website?
When someone visited your website, the javascript code will automatically try to download a program by simply asking the user to click the page. If your visitor "accidentally" accept (click) the program, your visitor workstation Internet browser is now HIJACKED! (Read here on how to remove Spyware Protect 2009). This mean that everytime they open an internet browser (ex. IE), they will ask you to install the fake antivirus program and start showing annoying advertisement. That is bad for your website.

If you have this javascripts injected to your website, here's a quick solution to fix this issue. After this quickfix, you "MUST" install the latest release of Joomla CMS.

You can edit your Joomla files through FTP or Putty (SSH) program.
01. Check your index.html or index.php in your website root directory e.g public_html/index.php or index.html.
02. Look for the javascript appended to the last portion of the index.html or index.php file.
03. If you see any javascript codes that should not be there, remove it and save your file.
ex. bad javascript codes:

04. CHMOD your index.php or index.html to 444, this means to not allow modifying the file.
ex. command:
chmod 444 index.php or chmod 444 index.html.
05. Check your templates folder e.g. public_html/templates/folder; where folder is the actual templates folder.
06. Check the index.php or index.html and repeat the process between item 02 to 04.

You are safe at this point.

Security Assessment (Testing) for your website:
You can check your website if you fully removed the injected javascript codes by using the recommended testing.
- Visit http://www.unmaskparasites.com for a quick online security check. Read the report.
- Visit your website, click the page view source to check your website. The first option is the most easy approach to check your website.
- If you have up-to-date antivirus software installed to your workstation, visiting your website will alert you if you're infected or not. They work most of the time but not completely accurate because some malware dissable antivirus program in some instances.

Now what's next?
01. You need to be proactive to protect your business (website), subscribe to Joomla Security News.
02. Install the latest released of Joomla CMS.
03. Share this article to all Joomla webmasters, so we can help them minimize risk of exposures.
04. and continue reading KING.NET Securiy AlertCon articles.

Comments

Popular posts from this blog

Alternative Social Networks

If you are planning to create your  social network  e.g. similar to Facebook. Here's a short list of alternative software's: Open Source and Free​ http://buddypress.org/  - Wordpress (Open Source and Free) http://elgg.org/  - (Open Source and Free) Commercial Social Networks software http://www.socialengine.com/  ($299 Stand Alone, $29/mo Cloud) http://www.jomsocial.com/  (run with Joomla, need to know CMS) http://www.boonex.com/  (very expensive, $399 for Standard) http://www.anahitapolis.com/ http://www.oxwall.org/ http://sharetronix.com/ http://www.moosocial.com/ http://www.jcow.net/ http://phpdolphin.com http://www.grou.ps  (from free to Commercial, I left my networks and they are selling it  http://www.phpfox.com/  (I used this before, it's hard to maintain. I moved to NING but left too after it was sold to another company) http://www.ning.com  (I don't recommend using this service, it's hard to export your data when it's time to move) S

Learning Vulnerability Scanning by KING.NET

Learning Vulnerability Scanning is fun and easy. So I hope you enjoy reading this short how to guide on how to use vulnerability scanning to secure your servers and networks. NMAP is the swiss tool that you need to learn if you're serious in Cyber Security profession. The NMAP tool can be use with NSE scripting (Nmap Scripting Engine) to automate your tasks. For example using NSE Script using a  single vulnerability (cold fusion)  to scan our test lab machine. root@kali:~# nmap -v -p 80  --script http-vuln-cve2010-2861  10.11.1.220 Starting Nmap 6.47 ( http://nmap.org ) at 2016-07-22 17:34 EDT NSE: Loaded 1 scripts for scanning. NSE: Script Pre-scanning. Initiating ARP Ping Scan at 17:34 Scanning 10.11.1.220 [1 port] Completed ARP Ping Scan at 17:34, 0.04s elapsed (1 total hosts) Initiating Parallel DNS resolution of 1 host. at 17:34 Completed Parallel DNS resolution of 1 host. at 17:35, 13.01s elapsed Initiating SYN Stealth Scan at 17:35 Scanning 10.11.1.220 [1 port] Comp