[wp-trac] [WordPress Trac] #5565: Plugin can hook into any functions or variables inside WP

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 1 23:55:12 GMT 2008


#5565: Plugin can hook into any functions or variables inside WP
-------------------------+--------------------------------------------------
 Reporter:  keithdsouza  |       Owner:  anonymous
     Type:  defect       |      Status:  new      
 Priority:  low          |   Milestone:  2.5      
Component:  Security     |     Version:           
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 A plugin can hook into any functions or variables in WordPress. A simple
 example is as forth

 function hack_wp() {
         global $wp_filter;
         $wp_filter = array('You can be hacked dude');
         check_wp_hack();
 }

 function check_wp_hack() {
         global $wp_filter;
         echo "<pre>Checking OKKK";
         print_r($wp_filter);
         echo "</pre>";

 }

 add_action('admin_head', 'hack_wp');

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5565>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list