Sinisterly
[*FIXED*] Issue with in_array() [strange] - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: PHP (https://sinister.ly/Forum-PHP)
+--- Thread: [*FIXED*] Issue with in_array() [strange] (/Thread-FIXED-Issue-with-in-array-strange)

Pages: 1 2 3 4 5


RE: Issue with in_array() [strange] - hellomen - 10-29-2013

(10-29-2013, 12:55 AM)1llusion Wrote:
(10-29-2013, 12:48 AM)hellomen Wrote:
(10-29-2013, 12:34 AM)1llusion Wrote:
(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/questions/32852/risks-of-a-php-image-upload-form
be aware it doesn't save the files on the web server itselves
it saves it in a database those vulnerabilities are for webserver savement

the BLOB on a database also only allows images so whenever the user tries to bypass part one the database says hehe this is not worthly for the blob row

oh wait, my bad Tongue sorry, when talking about file uploads I automatically assume you are saving them Smile

hmm, I'm sure we could find some vulns there anyway Tongue
I hope not but give it a shot tho the link will remain updating since I am adding features but it is live at: http://www.url4img.tk

btw on the installer is aswell a config.php file which contains all config files as for database info - and ofcourse the changeable max size xD
so I just changed it from 10MB -> 2MB XD

the settings in the config.php will later be configurated as database link backs so it's easier to save and read Smile


RE: Issue with in_array() [strange] - hellomen - 10-29-2013

(10-29-2013, 12:55 AM)1llusion Wrote:
(10-29-2013, 12:48 AM)hellomen Wrote:
(10-29-2013, 12:34 AM)1llusion Wrote:
(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/questions/32852/risks-of-a-php-image-upload-form
be aware it doesn't save the files on the web server itselves
it saves it in a database those vulnerabilities are for webserver savement

the BLOB on a database also only allows images so whenever the user tries to bypass part one the database says hehe this is not worthly for the blob row

oh wait, my bad Tongue sorry, when talking about file uploads I automatically assume you are saving them Smile

hmm, I'm sure we could find some vulns there anyway Tongue
I hope not but give it a shot tho the link will remain updating since I am adding features but it is live at: http://www.url4img.tk

btw on the installer is aswell a config.php file which contains all config files as for database info - and ofcourse the changeable max size xD
so I just changed it from 10MB -> 2MB XD

the settings in the config.php will later be configurated as database link backs so it's easier to save and read Smile


RE: Issue with in_array() [strange] - hellomen - 10-29-2013

(10-29-2013, 12:55 AM)1llusion Wrote:
(10-29-2013, 12:48 AM)hellomen Wrote:
(10-29-2013, 12:34 AM)1llusion Wrote:
(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/questions/32852/risks-of-a-php-image-upload-form
be aware it doesn't save the files on the web server itselves
it saves it in a database those vulnerabilities are for webserver savement

the BLOB on a database also only allows images so whenever the user tries to bypass part one the database says hehe this is not worthly for the blob row

oh wait, my bad Tongue sorry, when talking about file uploads I automatically assume you are saving them Smile

hmm, I'm sure we could find some vulns there anyway Tongue
I hope not but give it a shot tho the link will remain updating since I am adding features but it is live at: http://www.url4img.tk

btw on the installer is aswell a config.php file which contains all config files as for database info - and ofcourse the changeable max size xD
so I just changed it from 10MB -> 2MB XD

the settings in the config.php will later be configurated as database link backs so it's easier to save and read Smile


RE: Issue with in_array() [strange] - hellomen - 10-29-2013

(10-29-2013, 12:55 AM)1llusion Wrote:
(10-29-2013, 12:48 AM)hellomen Wrote:
(10-29-2013, 12:34 AM)1llusion Wrote:
(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/questions/32852/risks-of-a-php-image-upload-form
be aware it doesn't save the files on the web server itselves
it saves it in a database those vulnerabilities are for webserver savement

the BLOB on a database also only allows images so whenever the user tries to bypass part one the database says hehe this is not worthly for the blob row

oh wait, my bad Tongue sorry, when talking about file uploads I automatically assume you are saving them Smile

hmm, I'm sure we could find some vulns there anyway Tongue
I hope not but give it a shot tho the link will remain updating since I am adding features but it is live at: http://www.url4img.tk

btw on the installer is aswell a config.php file which contains all config files as for database info - and ofcourse the changeable max size xD
so I just changed it from 10MB -> 2MB XD

the settings in the config.php will later be configurated as database link backs so it's easier to save and read Smile


RE: Issue with in_array() [strange] - hellomen - 10-29-2013

(10-29-2013, 12:55 AM)1llusion Wrote:
(10-29-2013, 12:48 AM)hellomen Wrote:
(10-29-2013, 12:34 AM)1llusion Wrote:
(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/questions/32852/risks-of-a-php-image-upload-form
be aware it doesn't save the files on the web server itselves
it saves it in a database those vulnerabilities are for webserver savement

the BLOB on a database also only allows images so whenever the user tries to bypass part one the database says hehe this is not worthly for the blob row

oh wait, my bad Tongue sorry, when talking about file uploads I automatically assume you are saving them Smile

hmm, I'm sure we could find some vulns there anyway Tongue
I hope not but give it a shot tho the link will remain updating since I am adding features but it is live at: http://www.url4img.tk

btw on the installer is aswell a config.php file which contains all config files as for database info - and ofcourse the changeable max size xD
so I just changed it from 10MB -> 2MB XD

the settings in the config.php will later be configurated as database link backs so it's easier to save and read Smile