<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://it-forensik.fiw.hs-wismar.de/index.php?action=history&amp;feed=atom&amp;title=SQL_Injection</id>
	<title>SQL Injection - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://it-forensik.fiw.hs-wismar.de/index.php?action=history&amp;feed=atom&amp;title=SQL_Injection"/>
	<link rel="alternate" type="text/html" href="http://it-forensik.fiw.hs-wismar.de/index.php?title=SQL_Injection&amp;action=history"/>
	<updated>2026-10-31T09:54:08Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in IT-Forensik Wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://it-forensik.fiw.hs-wismar.de/index.php?title=SQL_Injection&amp;diff=1039&amp;oldid=prev</id>
		<title>St172456: Kleinigkeiten angepasst.</title>
		<link rel="alternate" type="text/html" href="http://it-forensik.fiw.hs-wismar.de/index.php?title=SQL_Injection&amp;diff=1039&amp;oldid=prev"/>
		<updated>2020-02-14T06:59:20Z</updated>

		<summary type="html">&lt;p&gt;Kleinigkeiten angepasst.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 14. Februar 2020, 06:59 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Zeile 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Für $uid eine beliebige Eingabe, z. B. abc&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Für $uid eine beliebige Eingabe, z. B. abc&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Für $pwd die Eingabe  ́ &#039;&#039;OR 1=1 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;–&#039;&#039; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Für $pwd die Eingabe  ́ &#039;&#039; OR 1=1 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;--&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wird keine Prüfung durchgeführt, ergibt sich dadurch die Abfrage:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wird keine Prüfung durchgeführt, ergibt sich dadurch die Abfrage:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;SELECT * FROM benutzertabelle WHERE benutzername =  ́abc ́ AND passwort = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;́ ́ OR &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/del&gt;=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2 &lt;/del&gt;-- &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;́&#039;&#039;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;SELECT * FROM benutzertabelle WHERE benutzername =  ́abc ́ AND passwort = ́ ́ &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;OR &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1 &lt;/ins&gt;--&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Da der Gesamte Term durch OR 1=1 immer „true“ als Ergebnis liefert kann der Angreifer sich so authentifizieren.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Da der Gesamte Term durch OR 1=1 immer „true“ als Ergebnis liefert kann der Angreifer sich so authentifizieren.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>St172456</name></author>
	</entry>
	<entry>
		<id>http://it-forensik.fiw.hs-wismar.de/index.php?title=SQL_Injection&amp;diff=803&amp;oldid=prev</id>
		<title>Etduen am 21. August 2019 um 09:45 Uhr</title>
		<link rel="alternate" type="text/html" href="http://it-forensik.fiw.hs-wismar.de/index.php?title=SQL_Injection&amp;diff=803&amp;oldid=prev"/>
		<updated>2019-08-21T09:45:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 21. August 2019, 09:45 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die SQL-Injektion bezeichnet eine Angriffsmethode auf Datenbanken, bei der ein Angreifer  durch eine fehlende Plausibilisierung der Parameterein- oder -übergabe ein SQL-Statement manipuliert.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die SQL-Injektion &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(engl.: SQL injection) &lt;/ins&gt;bezeichnet eine Angriffsmethode auf Datenbanken, bei der ein Angreifer  durch eine fehlende Plausibilisierung der Parameterein- oder -übergabe ein SQL-Statement manipuliert.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Beispielsweise tritt sie dann auf wenn ein Benutzer nach Eingaben gefragt wird, wie z.B. nach seinem Benutzernamen. Anstelle des Namens gibt der Benutzer eine SQL-Anweisung an, die auf der Datenbank ausgeführt wird. Dies ist dann &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Möglich&lt;/del&gt;, wenn die Benutzereingaben, durch eine fehlende Plausibilisierung, auf der Seite des Web-Servers von einem Interpreter als Kommando oder Abfrage interpretiert und ausgeführt werden. Durch diese Schwachstellen kann der Zugriff auf Datenbanken gewährt werden und Daten können beispielsweise gelesen oder manipuliert werden.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Beispielsweise tritt sie dann auf&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;wenn ein Benutzer nach Eingaben gefragt wird, wie z.B. nach seinem Benutzernamen. Anstelle des Namens gibt der Benutzer eine SQL-Anweisung an, die auf der Datenbank ausgeführt wird. Dies ist dann &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;möglich&lt;/ins&gt;, wenn die Benutzereingaben, durch eine fehlende Plausibilisierung, auf der Seite des Web-Servers von einem Interpreter als Kommando oder Abfrage interpretiert und ausgeführt werden. Durch diese Schwachstellen kann der Zugriff auf Datenbanken gewährt werden und Daten können beispielsweise gelesen oder manipuliert werden.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Als Gegenmaßnahme können Prüfungen auf die Feldinhalte und die Feldlänge durchgeführt werden. Ein Angreifer kann ohne die Prüfungen folgende Elemente &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Nutzen&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Als Gegenmaßnahme können Prüfungen auf die Feldinhalte und die Feldlänge durchgeführt werden. Ein Angreifer kann ohne die Prüfungen folgende Elemente &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nutzen&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* den SQL String Delimiter ( ́),&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* den SQL String Delimiter ( ́),&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Etduen</name></author>
	</entry>
	<entry>
		<id>http://it-forensik.fiw.hs-wismar.de/index.php?title=SQL_Injection&amp;diff=260&amp;oldid=prev</id>
		<title>St181586: Die Seite wurde neu angelegt: „Die SQL-Injektion bezeichnet eine Angriffsmethode auf Datenbanken, bei der ein Angreifer  durch eine fehlende Plausibilisierung der Parameterein- oder -überga…“</title>
		<link rel="alternate" type="text/html" href="http://it-forensik.fiw.hs-wismar.de/index.php?title=SQL_Injection&amp;diff=260&amp;oldid=prev"/>
		<updated>2019-06-24T16:54:15Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „Die SQL-Injektion bezeichnet eine Angriffsmethode auf Datenbanken, bei der ein Angreifer  durch eine fehlende Plausibilisierung der Parameterein- oder -überga…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Die SQL-Injektion bezeichnet eine Angriffsmethode auf Datenbanken, bei der ein Angreifer  durch eine fehlende Plausibilisierung der Parameterein- oder -übergabe ein SQL-Statement manipuliert.&lt;br /&gt;
&lt;br /&gt;
Beispielsweise tritt sie dann auf wenn ein Benutzer nach Eingaben gefragt wird, wie z.B. nach seinem Benutzernamen. Anstelle des Namens gibt der Benutzer eine SQL-Anweisung an, die auf der Datenbank ausgeführt wird. Dies ist dann Möglich, wenn die Benutzereingaben, durch eine fehlende Plausibilisierung, auf der Seite des Web-Servers von einem Interpreter als Kommando oder Abfrage interpretiert und ausgeführt werden. Durch diese Schwachstellen kann der Zugriff auf Datenbanken gewährt werden und Daten können beispielsweise gelesen oder manipuliert werden.&lt;br /&gt;
 &lt;br /&gt;
Als Gegenmaßnahme können Prüfungen auf die Feldinhalte und die Feldlänge durchgeführt werden. Ein Angreifer kann ohne die Prüfungen folgende Elemente Nutzen:&lt;br /&gt;
 &lt;br /&gt;
* den SQL String Delimiter ( ́),&lt;br /&gt;
* den SQL Statement Concatenation Character (;) und&lt;br /&gt;
* die SQL Comment Sequence bzw. Character nutzen (bei Microsoft® SQL Server: --, bei MySQL: #).&lt;br /&gt;
 &lt;br /&gt;
Ein Beispiel wäre folgende Abfrage die sich hinter einer Weboberfläche versteckt:&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;SELECT * FROM benutzertabelle WHERE benutzername =  ́$uid ́ AND passwort =  ́$pwd ́&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
Hier wird die Eingabe des Nutzers (Username und Passwort) mit der Datenbank abgeglichen, ob eine passende Kombination vorhanden ist bzw. ob es sich um einen zulässigen Benutzer handelt.&lt;br /&gt;
 &lt;br /&gt;
Ein Angreifer könnte nun ein folgende Eingabe tätigen:&lt;br /&gt;
 &lt;br /&gt;
* Für $uid eine beliebige Eingabe, z. B. abc&lt;br /&gt;
* Für $pwd die Eingabe  ́ &amp;#039;&amp;#039;OR 1=1 –&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
Wird keine Prüfung durchgeführt, ergibt sich dadurch die Abfrage:&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;SELECT * FROM benutzertabelle WHERE benutzername =  ́abc ́ AND passwort =  ́ ́ OR 2=2 -- ́&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
Da der Gesamte Term durch OR 1=1 immer „true“ als Ergebnis liefert kann der Angreifer sich so authentifizieren.&lt;/div&gt;</summary>
		<author><name>St181586</name></author>
	</entry>
</feed>