Jump to content

Bypass a filesize limits upload using BURP or TamperData ?


pierre

Recommended Posts

Hello,

I achieve uploading a PHP file to a webserver by modifying his Content-Type header but I fail to bypass the filesize limitation..

I try to modify the Content-Length header but no result..

Here is the server size limitation coding :

// File information
$uploaded_name = $_FILES[ 'uploaded' ][ 'name' ];
$uploaded_type = $_FILES[ 'uploaded' ][ 'type' ];
$uploaded_size = $_FILES[ 'uploaded' ][ 'size' ];

// Is it an image?
if( ( $uploaded_type == "image/jpeg" || $uploaded_type == "image/png" ) && ( $uploaded_size < 100000 ) ) {}

Here is a BURP screen :

burp.png

I hope I've been well-understand :)

Thanks for your answers !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...