【警告】使用 phpBB 架站必讀 SQL INJECTION in phpBB



贊助商連結


TAIWAN
2003-11-23, 10:01 PM
使用 phpBB 架站必讀 SQL INJECTION in phpBB Profile.PHP

http://www.phpbb.com/

phpbb have a list of registereds users, when you click on a memebr of this list, you \ are requesting data to the database

for example:

http://www.example.com/forum/profile.php?mode=viewprofile&u=2

this url show the information to the user with the uid = 2, the uid is a number \ assigned to users in phpbb.

but it isn't secure, because if you use this url, you can inject sql comands...

exploit:

http://www.example.com/profile.php?mode=viewprofile&u='[sqlcode]

where [sql code] represents the code may be injected.

贊助商連結


victorinoxs
2003-11-24, 04:27 AM
那該怎麼解決呢?

curarpikt
2003-11-25, 02:02 AM
最初由 victorinoxs 發表
那該怎麼解決呢?

不過我記得 SQL Injection 的問題經常出現,
所以其實只要多注意更新系統就很安全囉~~~ :D
不需要大驚小怪或是驚慌,
網路安全的秘訣之一就是隨時保持最新版本喲~~

fatwa
2003-11-26, 06:07 PM
可是我反而常聽到
不要一直追求最新版
最新版未必最安全哩

jessee780522
2003-11-29, 11:34 PM
這定義可能不一樣吧......
curarpikt兄講的是Patch的漏洞修補
這種當然時常更新是正向發展囉:)
但是新出版/改版的軟體
有時候可能會因為programmer的疏忽
導致少許的bug抑或是漏洞
總不太可能有人寫出來的程式沒有bug吧;)