Login Register


[*FIXED*] Issue with in_array() [strange] filter_list
Author
Message
RE: Issue with in_array() [strange] #21
(10-29-2013, 12:19 AM)1llusion Wrote:
(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestri...ile_Upload

it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...
Calling me stupid won't mind me it only shows your immaturity -<3

[Image: 120x240.gif]

Reply

RE: Issue with in_array() [strange] #22
(10-29-2013, 12:19 AM)1llusion Wrote:
(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestri...ile_Upload

it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...
Calling me stupid won't mind me it only shows your immaturity -<3

[Image: 120x240.gif]

Reply

RE: Issue with in_array() [strange] #23
(10-29-2013, 12:19 AM)1llusion Wrote:
(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestri...ile_Upload

it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...
Calling me stupid won't mind me it only shows your immaturity -<3

[Image: 120x240.gif]

Reply

RE: Issue with in_array() [strange] #24
(10-29-2013, 12:19 AM)1llusion Wrote:
(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestri...ile_Upload

it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...
Calling me stupid won't mind me it only shows your immaturity -<3

[Image: 120x240.gif]

Reply

RE: Issue with in_array() [strange] #25
(10-29-2013, 12:19 AM)1llusion Wrote:
(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestri...ile_Upload

it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...
Calling me stupid won't mind me it only shows your immaturity -<3

[Image: 120x240.gif]

Reply

RE: Issue with in_array() [strange] #26
(10-29-2013, 12:26 AM)hellomen Wrote: it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...

Unless you changed the way you check for this stuff, it is still vulnerable.

Best explanation is here (also with good pointers): http://security.stackexchange.com/questi...pload-form
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: Issue with in_array() [strange] #27
(10-29-2013, 12:26 AM)hellomen Wrote: it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...

Unless you changed the way you check for this stuff, it is still vulnerable.

Best explanation is here (also with good pointers): http://security.stackexchange.com/questi...pload-form
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: Issue with in_array() [strange] #28
(10-29-2013, 12:26 AM)hellomen Wrote: it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...

Unless you changed the way you check for this stuff, it is still vulnerable.

Best explanation is here (also with good pointers): http://security.stackexchange.com/questi...pload-form
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: Issue with in_array() [strange] #29
(10-29-2013, 12:26 AM)hellomen Wrote: it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...

Unless you changed the way you check for this stuff, it is still vulnerable.

Best explanation is here (also with good pointers): http://security.stackexchange.com/questi...pload-form
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply

RE: Issue with in_array() [strange] #30
(10-29-2013, 12:26 AM)hellomen Wrote: it is accepting: image/jpg image/jpeg and image/gif which are mime types
all other types are yet blocked out...

Unless you changed the way you check for this stuff, it is still vulnerable.

Best explanation is here (also with good pointers): http://security.stackexchange.com/questi...pload-form
Staff will never ever ask you for your personal information.
We know everything about you anyway.

Reply







Users browsing this thread: 1 Guest(s)