![]() |
SOLVED! - sql injection testng / sql error handling
Was testing my input boxes if they are vunerable to sql injections,
so was looking for a testing guide.. but all use username and password as exsamples so went ahead and just trying to add some normal html with and without '' without '' <br> saves in db as <br> and with ' ' around it shows a SQL error, basicly showing the entire Insert into query line and content. so need to work on some error handling Wanted to lookup some articles on vbulletin sql error handling but cant find any maybe im using wrong search words.. any suggestions ? |
<a href="https://vborg.vbsupport.ru/showthread.php?t=154411" target="_blank">Create Secure Mods</a>
|
Quote:
was looking for something more along the lines of error handling as we would in C#, On error goto (link to error handling) ALL userimput i get from the template i handle like this PHP Code:
inserting into db like this Exsample PHP Code:
|
Quote:
htmlspecialchars_uni is an output control and won't help prevent mysql errors from unescaped strings. |
Quote:
okay got it working proberly including exspace_string on each var.. haha.. TX AGAIN! |
If you are still using htmlspecialchars() before input into the database, you shouldn't be. As mentioned above, it is output control, and should only be used when displaying the data.
|
All times are GMT. The time now is 06:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|