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!
Wordpress 3.2.1 Core Module(post-template.php) Improper Sanitizing XSS
Exploit Title : Wordpress 3.2.1 Core Module(post-template.php) Improper Sanitizing(Persistent Cross Site Scripting Vulnerability) Author : Darshit Ashara Date : 21/08/2011 Vendor : Wordpress Version: 3.2.1 Software Link :http://wordpress.org/latest.zip [Version 3.2.1] ====================================================== Author : Darshit Ashara Contact : john_pwnr@yahoo.com Love to : A Gondela, Y Jaygadkar, A Dhaka, Rahul Sasi, Team Indishell and Garage4hackers. Greetz : You people know it :) Special Thanks : Keval Domadia(K.D) ======================================================= Improper sanitized code in Wordpress Core Module(post-template.php) Causing Cross site Scripting. Author can simply Update his Post title to </a><script>alert('1');</script><a> and its will give out alert on index page and post page. Below are the temporary patches for fixing. Vendor notified about this vulnerability. /*This will page XSS in Index Page*/ Vulnerable Code Part 1 function the_title($before = '', $after = '', $echo = true) { $title = get_the_title(); if ( strlen($title) == 0 ) return; $title = $before . $title . $after; if ( $echo ) echo htmlentities($title); /* Line No 52 Patch*/ else return htmlentities($title); /* Line No 54 Patch*/ } Vulnerable Code Part 2 function the_title_attribute( $args = '' ) { $title = get_the_title(); if ( strlen($title) == 0 ) return; $defaults = array('before' => '', 'after' => '', 'echo' => true); $r = wp_parse_args($args, $defaults); extract( $r, EXTR_SKIP ); $title = $before . $title . $after; $title = esc_attr(strip_tags($title)); if ( $echo ) echo htmlentities($title) ;/* Line No 87 Patch here By adding htmlentities*/ else return htmlentities($title); /* Line No 89 Patch*/ } /*This will Patch XSS in Post page*/ Vulnerable Code Part 3 function get_the_title( $id = 0 ) { $post = &get_post($id); $title = isset($post->post_title) ? $post->post_title : ''; $id = isset($post->ID) ? $post->ID : (int) $id; if ( !is_admin() ) { if ( !empty($post->post_password) ) { $protected_title_format = apply_filters('protected_title_format', __('Protected: %s')); $title = sprintf($protected_title_format, $title); } else if ( isset($post->post_status) && 'private' == $post->post_status ) { $private_title_format = apply_filters('private_title_format', __('Private: %s')); $title = sprintf($private_title_format, $title); } } return htmlentities(apply_filters( 'the_title', $title, $id )); /* Line No 119 Patch*/ } # 0day.today [2024-11-15] #