WordPress Nextend Facebook Connect 1.5.4 Cross Site Scripting

Posted on Posted in Exploit


WordPress NextEnd Connect plugin version 1.5.4 suffers from a cross site scripting vulnerability.

tags | advisory, xss
advisories | CVE-2015-4413


Document Title:
WordPress “Nextend Facebook Connect” Plugin Version: 1.5.4 is vulnerable to Reflected XSS (Cross Site Scripting)

Download URL:



Release Date:


Vulnerability CVE ID:


Vulnerability Disclosure Timeline:

2015 – 06 – 03 First notified to WordPress.
2015 – 06 – 07 First notified to plugin vendor .
2015 – 06 – 10 First notified to Mitre for CVE number.
2015 – 06 – 11 Vendor publish update for the plugin.
2015 – 06 – 22 Public Disclosure.

Discovery Status:



Severity Level:



Technical Details, Description & Proof of Concept (PoC):


After installing WordPress I add the plugin " Nextend Facebook Connect" witch allow you to login WordPress with Facebook account.

During my test I find out that the “redirect_to” parameter is vulnerable to Reflected XSS attack.

To reach to root of the problem, I took a look in the plugin source code and realized that the “new_fb_sign_button()” witch located in the file “nextend-facebook-connect.php”.

The problematic function are locate in line 432:

As you can see in the line 432, the function don’t escapes HTML tags or other dangerous symbols.

When attacker injects the Javascript code in the URL the function runs the code, as you can see:

And pop the alert window.

Solution - Fix & Patch:


In order to solve this security flaw you need to add the “htmlentities” function. (http://php.net/htmlentities)

As you can see in the image:

Liran Segal (Bugsec Information Security LTD)

Liran Segal
Penetration Testing
BugSec Cyber & Information Security


Office: 03-9622655 Fax: 03-9511433 Mobile: 054-8308351

Mail: lirans@bugsec.com<mailto:lirans@bugsec.com> Site: www.bugsec.com<http://www.bugsec.com/>

[úéàåø: úéàåø: úéàåø: bugsec_car_logo]<http://www.bugsec.com/>
Would you know if you’re under attack?
[úéàåø: cid:image002.jpg@01CF3E27.3B0DCAC0]<http://www.cyber-spear.com/>

Quelle: PacketStormSecurity