Quantcast
Viewing all articles
Browse latest Browse all 8

SecurityHole.py


  Last night I had an idea that I've been programming;
  I affectionately dub it:  "securityhole.py."

  It's made of two parts:  a Python web server, and a HTML+Javascript file.

  The Python web server serves index.html on 127.0.0.1.

  By default, it doesn't do anything at all.
  The idea is that you change the HTML+Javascript to whatever you want.

  What's the kicker?

  There's a function in the Javascript for executing any Python code on the server.
  (That is, on securityhole.py.)

  "Why, Lion, WHY?!?"

  ...well, I am getting deeply into user interface coding with Javascript, but my Python code is just too powerful, and the ability to read & write files and such, ...

  So, I can write my HTML and Javascript, and then whenever I need to do anything in Python, whenever I need to do anything with the filesystem, or pull some resource from elsewhere on the Internet, I just make this special function call, and, ...

  "Yeah," it's a security hole, but it's one only accessible from localhost.

  "What about XSS?"

  Well, ok, that has me worried.

 

Permalink | Leave a comment  »


Viewing all articles
Browse latest Browse all 8

Trending Articles