|
|
#1 (permalink) |
|
Moo indeed.
Join Date: Dec 2002
Location: In a grassy field :D
Posts: 140
|
Hi there I'm wondering if any of you has an incite into the recent vulnerability that was reported a few days ago.
http://www.kb.cert.org/vuls/id/497400 This is the information I found on it as well as some info about it from other websites, but this isn't enough. I need to know how the hacker managed to exploit phpBB because I am currently developing a web forum for a web site I'm doing. I've restricted input for Usernames and Passwords to ONLY be letters a-Z and numbers 0-9. Anything apart from the will return an error. Is this secure enough? Also, does anyone know how I can prevent a user from submitting a main body of text that could be executed by PHP. Currently they could place PHP instructions into the body of text and it would be processed by the server (not good!). Any fancy coding which would maybe go on the 'outside' of the main body to prevent such execution? Filtering all the different combinations of injection could be almost impossible. Feed me knowledge! -KC
__________________
|
|
|
|
|
|
#2 (permalink) | |
|
Da House Nerd
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
|
Quote:
To help you on your way, most web applications suffer from SQL injection attacks. If you're building a web app yourself, make sure you ALWAYS: - escape your user input before using it in an SQL query - initialise each variable you use if you have register_globals switched on - html_special_chars($mytext) each text that comes from a user or database before actually outputting it to the browser.
__________________
Linux virusscanner detected a virus: Windows 95 ... delete [Y/n] y ~ ~ :wq |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|