Home

wafful.org - Web Security Blog

302 Moved Temporarily

  • Comments (Close): 0
  • TrackBack (Close): 0

HTML 2.0 - Browser detection [3]

New browser detection only with HTML 2.0 without any JavaScript/CSS hacks.

HTML 2.0 - Browser detection [3]

It can detect firefox2.0, firefox1.5, other Gecko engine, and Safari2, Safari3, Opera, ie, w3m, lynx, and other browsers.

html20hacks-snapshot.png


Yet Another Browser detection : HTML Slash Quote 2.0

HTML Slash Quote 2.0 is a new browser detection without any JavaScript/CSS/Binary.

demo:

Browser detection[2] : HTML Slash Quote 2.0

HTML source

<img
 /''src="firefox.gif"
 /""src="sleipnir_gecko.gif"
   "src="safari.gif"
  ""src="konqueror.gif"
   /src="ie.gif"
    src="opera.gif"
    src="lynx.gif"
>

Example (lynx view)

browse2-lynx.png

Bibliography (thanks)

  1. http://d.hatena.ne.jp/hoshikuzu/20070925#p1 (in Japanese)
  2. http://d.hatena.ne.jp/hasegawayosuke/20070928/p1 (in Japanese)

New Browser detection : Web 2.0 HTML Hacks

New browser detection only with HTML 2.0 without any JavaScript/CSS hacks.

Demo:

Browser detection : HTML 2.0 only (demo)

htmldump.gif

Example

perl -e 'print<<EOF
<img x=` s\x00rc="safari2.gif" ` sr\x00c="ie.gif"
         src\x00="webkit.gif"    src\x0c="opera.gif"
         src="gecko.gif"         src="lynx.gif"   />
EOF'

html20hacks-snapshot.png

PHP code in GIF image file

Recently it was reported that some picture files buried within the attack code of PHP was discovered on the major hosting site.

The RFI attack of PHP code can be buried within GIF, PNG, JPEG, and other picture files.

PHP code in GIF image file (sample)

phpinfo.gif

phpinfo-gif-dump.png  

include.php

<h1>PHP/GIF include demo</h1>
<?php
include("./phpinfo.gif");
?>

Result

phpinfo-gif-include.png 

Home

Feeds

Page Top