WordPress Mac Photo Gallery Plugin Multiple Script Insertion Vulnerabilities


Description   Charlie Eriksen has discovered multiple vulnerabilities in the Mac Photo Gallery plugin for WordPress, which can be exploited by malicious people to conduct script insertion attacks.
Input passed via multiple parameters to two scripts is not properly sanitised before being used. This can be exploited to insert arbitrary HTML and script code, which will be executed in a user's browser session in context of an affected site if malicious data is viewed.
List of affected scripts and parameters:
<a href="http://[host]/wp-content/plugins/mac-dock-gallery/macalbajax.php?macPhoto_desc
" target="_blank">http://[host]/wp-content/plugins...calbajax.php?macPhoto_desc
</a>
<a href="http://[host]/wp-content/plugins/mac-dock-gallery/macalbajax.php?macedit_name&macedit_desc
" target="_blank">http://[host]/wp-content/plugins...edit_name&macedit_desc
</a>
<a href="http://[host]/wp-content/plugins/mac-dock-gallery/macphtajax.php?macPhoto_name
" target="_blank">http://[host]/wp-content/plugins...cphtajax.php?macPhoto_name
</a>
<a href="http://[host]/wp-content/plugins/mac-dock-gallery/macphtajax.php?macAlbum_name&macAlbum_desc
" target="_blank">http://[host]/wp-content/plugins...bum_name&macAlbum_desc
</a>
The vulnerabilities are confirmed in version 2.10. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
WordPress Mac Photo Gallery Plugin 2.x
     
Solution   Upgrade to version 3.0.
     
CVE  
     
References   Mac Photo Gallery:
http://plugins.trac.wordpress.org/changeset/571182/mac-dock-gallery
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
XSS - Prevention - GET : suspicious 'iframe' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'meta' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious tag with event found in URL
3.2.0
XSS - Prevention - GET : suspicious 'applet' tag found in URL
3.2.0
XSS - Phishing : suspicious 'div' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' attribute found in URL
3.2.0
XSS - Prevention - GET : suspicious 'img' tag found in URL
3.2.0
XSS - Phishing : suspicious 'a' tag found in URL
3.2.0
XSS - Prevention - GET : cookie access attempt using script language found in URL
3.2.0
XSS - Prevention - GET : suspicious 'embed' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'object' tag found in URL
3.2.0
XSS - Phishing : suspicious 'form' tag found in URL
3.2.0
XSS - Prevention - GET : javascript code found in URL
3.2.0
XSS - Prevention - GET : evasion attempt using tag characters encoding in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' tag found in URL
3.2.0
XSS - Phishing : suspicious 'link' tag found in URL
3.2.0
XSS - Prevention - GET : 'script' tag found in URL
3.2.0
XSS - Prevention - GET : 'location' javascript object found in URL
3.2.0
XSS - Prevention - GET : suspicious 'div' tag found in URL
3.2.0
     


 
 
 
 
 Risk level 
Moderate 

 Vulnerability First Public Report Date 
2012-07-25 

 Target Type 
Server 

 Possible exploit 
Remote