Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,639 members, 7,813,126 topics. Date: Tuesday, 30 April 2024 at 07:28 AM

How To Check If Your Wordpress Site Is Vulnerable To XSS Attack - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How To Check If Your Wordpress Site Is Vulnerable To XSS Attack (1747 Views)

Your Site Is Now Connected To Adsense / What Is The Right Way To Escape User Input And Output Data Against Xss And Sql I / Please Is This Script Free From Sql Injection And Xss Attacks (2) (3) (4)

(1) (Reply)

How To Check If Your Wordpress Site Is Vulnerable To XSS Attack by resultcase(m): 5:26pm On Aug 13, 2015
WordPress is the most popular Content Management System (CMS) out there, an open source CMS based on PHP and Mysql. It is very popular due to it’s flexibility and easy to use, it has numerous themes and plugins both free and premium, but as we enjoy this great CMS, we should be also wary of the threats our websites could encounter through attacks of various types.

Recently, it has been reported that current versions of WordPress are vulnerable to a stored XSS. Cross-site Scripting or XSS is a type of attack using malicious scripts that are injected in to web pages. This security vulnerability accounts for typically 87% of all security vulnerabilities and the malicious contents can be delivered in a number of ways.

In reflected cross-site scripting (XSS), the attacker can trick you into clicking a malicious link. The attacker injects browser executable code within a single HTTP response. It means that the injected attack is not stored within the application itself. Reflected XSS is also sometimes referred to as Non-Persistent.

In stored Cross-site Scripting (XSS) malicious contents are stored permanently on the target servers such as database, comment field, message forum etc. So the malicious script is retrieved when the stored information is requested from the server. Stored XSS is also referred to as Persistent XSS.

How to test if a site is Vulnerable to XSS?

Testing the XSS vulnerability of a website is quite easy. We can test it by modifying a current parameter that is sent in the HTTP GET request. For example, first use the following example in the browser to print a welcome page for a person John:

http://domain.com/index.html?name=john

This URL is modified to add an extra parameter as shown below:

http://domain.com/index.html?name=<script>alert (‘You just found a XSS vulnerability’)</script>

If the parameter name is not even validating and returning the page as ‘You just found an XSS vulnerability’, then the site is vulnerable to XSS. There are various methods to test XSS vulnerability and this is only one among the few known methods.

WordPress Vulnerability

Vulnerability to a stored XSS was recently announced in WordPress. Due to this vulnerability, any unauthorised attacker can inject JavaScript in WordPress comments. When triggered by a logged in admin, the attacker can execute any arbitrary code on the server via the plugin and theme editors under default settings. The comment inserted has to be longer than 64 kilobytes. The comment text will be truncated when inserted in the database. The exploits need to get around comment moderation, that is, by posting one harmless comment first before injecting the Javascript. The attacker can change the administrator’s password, create new administrator accounts, or can have the entire administrator access on the target system.

It is therefore advisable to upgrade your wordpress version to the latest version. You can download the latest version here.

Source: http://www.ss6.net/blog/how-to-check-if-your-wordpress-site-is-vulnerable-to-xss-attack/
Re: How To Check If Your Wordpress Site Is Vulnerable To XSS Attack by jammani(m): 5:36pm On Aug 13, 2015
Thank you
Re: How To Check If Your Wordpress Site Is Vulnerable To XSS Attack by resultcase(m): 5:59pm On Aug 13, 2015
jammani:
Thank you

You re welcome.

(1) (Reply)

Facebook Trick, Add About 250k In Your Group / How To Share Data On Airtel / Finally The Long Awaited Tech Blog Has Been Launched

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.