|
You last visited: Today at 18:53
Advertisement
Website auf Injections checken
Discussion on Website auf Injections checken within the Web Development forum part of the Coders Den category.
02/11/2014, 17:13
|
#1
|
elite*gold: 0
Join Date: Jun 2013
Posts: 405
Received Thanks: 84
|
Website auf Injections checken
Hallo,
wollte mal fragen ob mir einer meine Homepage auf SQL-Injections checken kann. Oder auf andere kritische Fehler, die einen Datenbank-Zugriff gewähren könnten.
Und gibt es Methoden dies zu verhindern? Sich mehr abzusichern? Gibt es Methoden Injections zu 100% nicht zuzulassen?
Grüße
|
|
|
02/11/2014, 17:15
|
#2
|
elite*gold: 2932
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
|
Alle Nutzereingaben verifizieren, ALLE! sowie Prepared Statements.
|
|
|
02/11/2014, 17:20
|
#3
|
elite*gold: 0
Join Date: Jun 2013
Posts: 405
Received Thanks: 84
|
Quote:
Originally Posted by tolio
Alle Nutzereingaben verifizieren, ALLE! sowie Prepared Statements.
|
Wie meinst du das? Bin noch nicht so weit mit PHP. Meinst du "loggen"? Oder so etwas wie ein Captcha?
|
|
|
02/11/2014, 17:27
|
#4
|
elite*gold: 2932
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
|
Kommt immer drauf an was genau du machen willst
Wenn möglich ist es das beste mit Whitelists zu arbeiten.
Kleines bsp. du willst nen login machen. Dann brech sofort ab sobald nen Zeichen außer Buchstaben und Zahlen vorkommen.
Aber wie gesagt kommt extrem drauf an was du machen willst ob das sich lohnt oder nicht.
|
|
|
02/11/2014, 21:26
|
#5
|
elite*gold: 56
Join Date: Oct 2010
Posts: 3,409
Received Thanks: 1,219
|
Hol dir BackTrack oder die neuere Variante und hau alle Tools die mit Servern und Webseiten zutun haben über deine Webseite.
Edit:
Musst ggf. deinen Serveranbieter fragen.
|
|
|
02/11/2014, 23:33
|
#6
|
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
|
Quote:
Originally Posted by MrDami123
Hol dir BackTrack oder die neuere Variante und hau alle Tools die mit Servern und Webseiten zutun haben über deine Webseite.
Edit:
Musst ggf. deinen Serveranbieter fragen.
|
Ein leicher overkill, da die Tools auch richtig bedient werden wollen oder ?
Ich würde dir etwas automatisiertes, wie zb  empfehlen.
|
|
|
02/13/2014, 23:02
|
#7
|
elite*gold: 22
Join Date: Nov 2009
Posts: 1,552
Received Thanks: 361
|
Alle $_POST Daten über mysql_real_escape_string sichern.
Sowie strip_tags verwenden.
|
|
|
02/13/2014, 23:09
|
#8
|
elite*gold: 2932
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
|
^ get daten nicht zu überprüfen ist genauso fatal oder wie auch immer sonst daten reinkommen, zb cookies etc
|
|
|
02/14/2014, 11:10
|
#9
|
elite*gold: 1000
Join Date: Mar 2009
Posts: 1,408
Received Thanks: 1,006
|
Naja vielleicht hilfts ja:
Ich hab bei mir immer so ne function (oder so in der Art), mit der ich prüfe, ob eine Eingabe erlaubt ist, oder nicht (hier nicht Objekt orientiert):
PHP Code:
/******************** ** Function ** ********************/ function checkForbidden($value) { $checkit = preg_match("/^[^!\"\/?*':<>[:space:]]+$/",$value); if($checkit) return true; else return false; }
/******************** ** Query ** ********************/ if(checkForbidden($_POST['input'])!=true) { echo "Sorry your string isn't valid"; } else { echo "Your string is vald!"; }
PS: mysql_real_escape_sting ist veraltet....
|
|
|
02/14/2014, 13:31
|
#10
|
elite*gold: 0
Join Date: Jun 2013
Posts: 405
Received Thanks: 84
|
Quote:
Originally Posted by Coniesan
Naja vielleicht hilfts ja:
Ich hab bei mir immer so ne function (oder so in der Art), mit der ich prüfe, ob eine Eingabe erlaubt ist, oder nicht (hier nicht Objekt orientiert):
PHP Code:
/********************
** Function **
********************/
function checkForbidden($value) {
$checkit = preg_match("/^[^!\"\/?*':<>[:space:]]+$/",$value);
if($checkit) return true;
else return false;
}
/********************
** Query **
********************/
if(checkForbidden($_POST['input'])!=true)
{
echo "Sorry your string isn't valid";
} else {
echo "Your string is vald!";
}
PS: mysql_real_escape_sting ist veraltet....
|
Danke werd's demnächst mal probieren.
|
|
|
02/15/2014, 00:31
|
#11
|
elite*gold: 0
Join Date: Feb 2014
Posts: 3
Received Thanks: 1
|
Habe mal eben mit Havij Free gescannt, gegen die ganz kleinen Kiddies biste dann schon mal abgesichert:
Quote:
Havij 1.15 Free!
You are using the Free version of Havij which is limited in some features, Please purchase the commerical version at  Analyzing 
Host IP: 84.201.35.203
Web Server: Apache
Powered-by: PleskLin
Keyword Found: Germany
I guess injection type is Integer?! If injection failed, retry with a manual keyword.
Can't find db server type! But maybe there be some chances! [-o<
Cannot find column count!
Testing for MySQL error based injection method
MySQL error based injection method cant be used!
MsSQL time based injection method can be used (4477ms delay)
Finding current data base
MsSQL Blind and time based are not supported in free version! Please purchase the commerical version of Havij at
|
Andere Software habe ich aktuell nicht auf diesem Rechner installiert, werde das morgen mal checken und mich noch mal melden!
|
|
|
02/16/2014, 17:11
|
#12
|
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
|
|
|
|
 |
Similar Threads
|
[Help]Injections and autorisations.
08/16/2013 - S4 League - 9 Replies
Yo.
I re-installed windows 7, and i had a problem :
Injections for S4Client.exe don't work, because of system autorisation.
I'm in administrator account, i have all rights normally, executed as admin, uninstalled anti-virus,but it still doesnt inject.
I tried faith injector undetected, it says "injection successful" but it's not true, nothing changes ingame.
I tried process hacker, it says "Unable to inject the DLL into S4Client.exe (PID 1384): because of injection conflits, it wasn't...
|
Protection against dll injections
07/23/2012 - Metin2 Private Server - 0 Replies
Hello , i play in a server that have protection agains dll injections , the ichigo-defender. The ichigo-defender close the metin window when i inject any dll file.
Does anybody know how to bypass this ?? the client have protection against injections trought logininfo.py. they changed the name on logininfo.py on the exe file , and they compiled and encripted the file.
if anybody could help me i would be very grateful :)
and sorry for my english , hope you understand everything
|
[Tutorial]SQL Injections
12/02/2009 - Dekaron Private Server - 4 Replies
Too much spam on PMs. Please close the thread.
|
[Discussion]Dll injections in Dragonica THQ
07/12/2009 - Dragonica - 9 Replies
So i've been playing around with dll injection in dragonica online, THQ*Ice server, and I've put together some basics. I'm learning this stuff too so don't expect me to be some expert.
This is a code i pieced together from other guides I have found throughout my friend, google.
#include <windows.h>
//Define variables
DWORD ThreadID;
float *zoom = (float*)0x012D4A10; //Offset for zoom
|
All times are GMT +1. The time now is 18:53.
|
|