Wednesday 15 June 2011

Can PHP filesize() method be spoofed with image metadata? -



Can PHP filesize() method be spoofed with image metadata? -

the php filesize() method used determine size of file in bytes. 1 illustration determine size of image file. if method gets info images metadata, possible spoofed modifying image metadata somehow, or method calculate file size based on true contents of image file?

<?php filesize(); ?>

the function filesize

returns size of file in bytes, or false (and generates error of level e_warning) in case of error.

http://php.net/manual/en/function.filesize.php

it not in way seek interpret image metadata.

php image image-processing metadata filesize

No comments:

Post a Comment