PCTechTalkhttp://www.pctechtalk.com/forums/

Go Back   PCTechTalk > PC Tech > Web Related

Reply
 
LinkBack Thread Tools Display Modes
Old 12-23-2004, 03:14 PM   #1 (permalink)
Moo indeed.
 
killer_cow's Avatar
 
Join Date: Dec 2002
Location: In a grassy field :D
Posts: 140
killer_cow
Exclamation Need more info on: phpBB < 2.0.10 Vulnerability

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
__________________
killer_cow is offline   Reply With Quote
Old 12-24-2004, 03:43 AM   #2 (permalink)
Da House Nerd
 
greffov's Avatar
 
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
greffov will become famous soon enough
Quote:
phpBB viewtopic.php fails to properly sanitize input passed to the "highlight" parameter
this is usually a forgotten [database]_escape_quotes($string) call.
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
greffov is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 07:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
2001 PCTechTalk