My site got hacked, used for phishing, please help!

Discussion in 'Security' started by Riccardo, Nov 7, 2007.

  1. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Something I would add when accepting uploaded image files is to use PHP to check the MIME type of the uploaded file.

    If it is text/plain when it is a .gif file then something is very wrong. Make a list of supported image types (gif,jpeg,png,etc) and reject everything else.
     
    Ladadadada, Jun 2, 2008 IP