I made a bet with a coworker. See if I did good.
Bet:
Try to compromise or otherwise disturb the normal function of an app because of a problem with PHP.
Problems/holes with network and the server are excluded. (ie DoS attack does not count)
The app runs some CLI commands, uploads a file, stores data in MySQL and has an user/access login.
Most of your know my level of expertise with PHP, so skip the mysql_escape_st ring() talks. :)
1. Sanitize every input and request from the page
2. Encrypt session and store session on server/not in a cookie
3. Block all bad-IPs. (if I see bad input, do not process any request from that IP)
4. ????
5. Win 100 Bucks!
He'll have 1 week to do it.
Dan
Bet:
Try to compromise or otherwise disturb the normal function of an app because of a problem with PHP.
Problems/holes with network and the server are excluded. (ie DoS attack does not count)
The app runs some CLI commands, uploads a file, stores data in MySQL and has an user/access login.
Most of your know my level of expertise with PHP, so skip the mysql_escape_st ring() talks. :)
1. Sanitize every input and request from the page
2. Encrypt session and store session on server/not in a cookie
3. Block all bad-IPs. (if I see bad input, do not process any request from that IP)
4. ????
5. Win 100 Bucks!
He'll have 1 week to do it.
Dan
Comment