Is it possible to put binary image data into html markup and then get the image displayed as usual i

Posted by Joern Akkermann on Stack Overflow See other posts from Stack Overflow or by Joern Akkermann
Published on 2010-03-12T01:33:38Z Indexed on 2010/03/12 1:47 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|

It's an important security issue and I'm sure this should be possible.

A simple example:

You run a community portal. Users are registered and upload their pictures. Your application gives security rules whenever a picture is allowed to be displayed. For example users must be friends on each sides by the system, in order that you can view someone else's uploaded pictures.

Here comes the problem: it is possible that someone crawls the image directories of your server. But you want to protect your users from such attacks.

If it's possible to put the binary data of an image directly into the HTML markup, you can restrict the user access of your image dirs the user and group your web application runs of and pass the image data to your Apache user and group directly in the HTML.

The only possible weakness then is the password of the user that your web app runs as.

Is there already a possibility?

© Stack Overflow or respective owner

Related posts about security

Related posts about apache2