Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Author Archives

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.

When GIF serve JavaScript!

By manipulating the GIF headers, one can create a bi-format file which is valid both as a GIF image and JavaScript code. This could allow one to upload an image, then reference it from an html script tag as a local resource, potentially bypassing certain security restrictions.

When GIF serve JavaScript!