<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.owasp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mitjak</id>
		<title>OWASP - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.owasp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mitjak"/>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php/Special:Contributions/Mitjak"/>
		<updated>2026-05-28T09:26:57Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.2</generator>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Binary_planting&amp;diff=87822</id>
		<title>Binary planting</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Binary_planting&amp;diff=87822"/>
				<updated>2010-08-21T17:48:59Z</updated>
		
		<summary type="html">&lt;p&gt;Mitjak: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Attack}}&lt;br /&gt;
&lt;br /&gt;
Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}'''&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
[[Binary planting]] is a general term for an attack where the attacker places (i.e., plants) a binary file containing malicious code to some local or remote file system location in order for a vulnerable application to load and execute it.&lt;br /&gt;
&lt;br /&gt;
There can be various reasons why an application would load a malicious binary:&lt;br /&gt;
&lt;br /&gt;
# Insecure access permissions on a local directory allow a local attacker to plant the malicious binary in a trusted location. (A typical example is an application installer not properly setting access permissions on application directories.)&lt;br /&gt;
# One application may be used for planting a malicious binary in another application's trusted location. (An example is the Internet Explorer - Safari blended threat vulnerability)&lt;br /&gt;
# The application searches for a binary in untrusted locations, possibly on remote file systems. (A typical example is a Windows application loading a dynamic link library from the current working directory after the latter has been set to a network shared folder.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Risk Factors==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
=== Insecure Access Permissions-based Attack ===&lt;br /&gt;
&lt;br /&gt;
# A Windows application installer creates a root directory (C:\Application) and installs the application in it, but fails to limit write access to the directory for non-privileged users.&lt;br /&gt;
# Suppose the application (C:\Application\App.exe) loads the WININET.DLL library by calling LoadLibrary(&amp;quot;WININET.DLL&amp;quot;). This library is expected to be found in the Windows System32 folder.&lt;br /&gt;
# Local user A plants a malicious WININET.DLL library in C:\Application&lt;br /&gt;
# Local user B launches the application, which loads and executes the malicious WININET.DLL instead of the legitimate one.&lt;br /&gt;
&lt;br /&gt;
=== Current Working Directroy-based Attack ===&lt;br /&gt;
&lt;br /&gt;
# Suppose a Windows application loads the DWMAPI.DLL library by calling LoadLibrary(&amp;quot;DWMAPI.DLL&amp;quot;). This library is expected to be found in the Windows System32 folder, but only exists on Windows Vista and Windows 7.&lt;br /&gt;
# Suppose the application is associated with the &amp;quot;.bp&amp;quot; file extension.&lt;br /&gt;
# The attacker sets up a network shared folder and places files honeypot.bp and DWMAPI.DLL in this folder (possibly marking the latter as hidden).&lt;br /&gt;
# The attacker invites a Windows XP user to visit the shared folder with Windows Explorer.&lt;br /&gt;
# When the user double-clicks on honeypot.bp, user's Windows Explorer sets the current working directory to the remote share and launches the application for opening the file.&lt;br /&gt;
# The application tries to load DWMAPI.DLL, but failing to find it in the Windows system directories, it loads and executes it from the attacker's network share.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Threat Agents]]==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Internet_attacker]]&lt;br /&gt;
* [[:Category:Intranet_attacker]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Attacks]]==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Embedded Malicious Code]]&lt;br /&gt;
* [[Code Injection]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Vulnerabilities]]==&lt;br /&gt;
&lt;br /&gt;
* [[Portability Flaw]]&lt;br /&gt;
* [[Process Control]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Controls]]==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
* [http://cwe.mitre.org/data/definitions/114.html CWE-114: Process Control]&lt;br /&gt;
* [http://www.securityfocus.com/archive/1/510426 Elevation of Privilege Vulnerability in iTunes for Windows] - example of  Insecure Access Permissions-based Attack&lt;br /&gt;
* [http://www.securityfocus.com/archive/1/513190 Remote Binary Planting in Apple iTunes for Windows] - example of Current Working Directroy-based Attack &lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:Attack]]&lt;/div&gt;</summary>
		<author><name>Mitjak</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Binary_planting&amp;diff=87808</id>
		<title>Binary planting</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Binary_planting&amp;diff=87808"/>
				<updated>2010-08-20T01:22:39Z</updated>
		
		<summary type="html">&lt;p&gt;Mitjak: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Attack}}&lt;br /&gt;
&lt;br /&gt;
Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}'''&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
[[Binary planting]] is a general term for an attack where the attacker places (i.e., plants) a binary file containing malicious code to some local or remote file system location in order for a vulnerable application to load and execute it.&lt;br /&gt;
&lt;br /&gt;
There can be various reasons why an application would load a malicious binary:&lt;br /&gt;
&lt;br /&gt;
# Insecure access permissions on a local directory allow a local attacker to plant the malicious binary in a trusted location. (A typical example is an application installer not properly setting access permissions on application directories.)&lt;br /&gt;
# One application may be used for planting a malicious binary in another application's trusted location. (An example is the Internet Explorer - Safari blended threat vulnerability)&lt;br /&gt;
# The application searches for a binary in untrusted locations, possibly on remote file systems. (A typical example is a Windows application loading a dynamic link library from the current working directory after the latter has been set to a network shared folder.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Risk Factors==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
=== Insecure Access Permissions-based Attack ===&lt;br /&gt;
&lt;br /&gt;
# A Windows application installer creates a root directory (C:\Application) and installs the application in it, but fails to limit write access to the directory for non-privileged users.&lt;br /&gt;
# Suppose the application (C:\Application\App.exe) loads the WININET.DLL library by calling LoadLibrary(&amp;quot;WININET.DLL&amp;quot;). This library is expected to be found in the Windows System32 folder.&lt;br /&gt;
# Local user A plants a malicious WININET.DLL library in C:\Application&lt;br /&gt;
# Local user B launches the application, which loads and executes the malicious WININET.DLL instead of the legitimate one.&lt;br /&gt;
&lt;br /&gt;
=== Current Working Directroy-based Attack ===&lt;br /&gt;
&lt;br /&gt;
# Suppose a Windows application loads the DWMAPI.DLL library by calling LoadLibrary(&amp;quot;DWMAPI.DLL&amp;quot;). This library is expected to be found in the Windows System32 folder, but only exists on Windows Vista and Windows 7.&lt;br /&gt;
# Suppose the application is associated with the &amp;quot;.bp&amp;quot; file extension.&lt;br /&gt;
# The attacker sets up a network shared folder and places files honeypot.bp and DWMAPI.DLL in this folder (possibly marking the latter as hidden).&lt;br /&gt;
# The attacker invites a Windows XP user to visit the shared folder with Windows Explorer.&lt;br /&gt;
# When the user double-clicks on honeypot.bp, user's Windows Explorer sets the current working directory to the remote share and launches the application for opening the file.&lt;br /&gt;
# The application tries to load DWMAPI.DLL, but failing to find it in the Windows system directories, it loads and executes it from the attacker's network share.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Threat Agents]]==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Internet_attacker]]&lt;br /&gt;
* [[:Category:Intranet_attacker]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Attacks]]==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Embedded Malicious Code]]&lt;br /&gt;
* [[Code Injection]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Vulnerabilities]]==&lt;br /&gt;
&lt;br /&gt;
* [[Portability Flaw]]&lt;br /&gt;
* [[Process Control]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Controls]]==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
* [http://cwe.mitre.org/data/definitions/114.html CWE-114: Process Control]&lt;br /&gt;
* [http://www.securityfocus.com/archive/1/510426 Elevation of Privilege Vulnerability in iTunes for Windows] - example of  Insecure Access Permissions-based Attack&lt;br /&gt;
* [http://www.securityfocus.com/archive/1/513190 Remote Binary Planting in Apple iTunes for Windows] - example of Current Working Directroy-based Attack &lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Mitjak</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Binary_planting&amp;diff=87807</id>
		<title>Binary planting</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Binary_planting&amp;diff=87807"/>
				<updated>2010-08-20T01:21:42Z</updated>
		
		<summary type="html">&lt;p&gt;Mitjak: /* Risk Factors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Attack}}&lt;br /&gt;
&lt;br /&gt;
Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}'''&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
[[Binary planting]] is a general term for an attack where the attacker places (i.e., plants) a binary file containing malicious code to some local or remote file system location in order for a vulnerable application to load and execute it.&lt;br /&gt;
&lt;br /&gt;
There can be various reasons why an application would load a malicious binary:&lt;br /&gt;
&lt;br /&gt;
# Insecure access permissions on a local directory allow a local attacker to plant the malicious binary in a trusted location. (A typical example is an application installer not properly setting access permissions on application directories.)&lt;br /&gt;
# One application may be used for planting a malicious binary in another application's trusted location. (An example is the Internet Explorer - Safari blended threat vulnerability)&lt;br /&gt;
# The application searches for a binary in untrusted locations, possibly on remote file systems. (A typical example is a Windows application loading a dynamic link library from the current working directory after the latter has been set to a network shared folder.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Risk Factors==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
=== Insecure Access Permissions-based Attack ===&lt;br /&gt;
&lt;br /&gt;
# A Windows application installer creates a root directory (C:\Application) and installs the application in it, but fails to limit write access to the directory for non-privileged users.&lt;br /&gt;
# Suppose the application (C:\Application\App.exe) loads the WININET.DLL library by calling LoadLibrary(&amp;quot;WININET.DLL&amp;quot;). This library is expected to be found in the Windows System32 folder.&lt;br /&gt;
# Local user A plants a malicious WININET.DLL library in C:\Application&lt;br /&gt;
# Local user B launches the application, which loads and executes the malicious WININET.DLL instead of the legitimate one.&lt;br /&gt;
&lt;br /&gt;
=== Current Working Directroy-based Attack ===&lt;br /&gt;
&lt;br /&gt;
# Suppose a Windows application loads the DWMAPI.DLL library by calling LoadLibrary(&amp;quot;DWMAPI.DLL&amp;quot;). This library is expected to be found in the Windows System32 folder, but only exists on Windows Vista and Windows 7.&lt;br /&gt;
# Suppose the application is associated with the &amp;quot;.bp&amp;quot; file extension.&lt;br /&gt;
# The attacker sets up a network shared folder and places files honeypot.bp and DWMAPI.DLL in this folder (possibly marking the latter as hidden).&lt;br /&gt;
# The attacker invites a Windows XP user to visit the shared folder with Windows Explorer.&lt;br /&gt;
# When the user double-clicks on honeypot.bp, user's Windows Explorer sets the current working directory to the remote share and launches the application for opening the file.&lt;br /&gt;
# The application tries to load DWMAPI.DLL, but failing to find it in the Windows system directories, it loads and executes it from the attacker's network share.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Threat Agents]]==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Internet_attacker]]&lt;br /&gt;
* [[:Category:Intranet_attacker]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Attacks]]==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Embedded Malicious Code]]&lt;br /&gt;
* [[Code Injection]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Vulnerabilities]]==&lt;br /&gt;
&lt;br /&gt;
* [[Portability Flaw]]&lt;br /&gt;
* [[Process Control]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Controls]]==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
'''Note1:''' A reference to related [http://cwe.mitre.org/ CWE] or [http://capec.mitre.org/ CAPEC] article should be added when exists. Eg:&lt;br /&gt;
&lt;br /&gt;
* [http://cwe.mitre.org/data/definitions/114.html CWE-114: Process Control]&lt;br /&gt;
* [http://www.securityfocus.com/archive/1/510426 Elevation of Privilege Vulnerability in iTunes for Windows] - example of  Insecure Access Permissions-based Attack&lt;br /&gt;
* [http://www.securityfocus.com/archive/1/513190 Remote Binary Planting in Apple iTunes for Windows] - example of Current Working Directroy-based Attack &lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Mitjak</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Binary_planting&amp;diff=87806</id>
		<title>Binary planting</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Binary_planting&amp;diff=87806"/>
				<updated>2010-08-20T01:19:30Z</updated>
		
		<summary type="html">&lt;p&gt;Mitjak: Created page with '{{Template:Attack}}  Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}'''  ==Description==  Binary planting is a general term for an attack wher…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Attack}}&lt;br /&gt;
&lt;br /&gt;
Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}'''&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
[[Binary planting]] is a general term for an attack where the attacker places (i.e., plants) a binary file containing malicious code to some local or remote file system location in order for a vulnerable application to load and execute it.&lt;br /&gt;
&lt;br /&gt;
There can be various reasons why an application would load a malicious binary:&lt;br /&gt;
&lt;br /&gt;
# Insecure access permissions on a local directory allow a local attacker to plant the malicious binary in a trusted location. (A typical example is an application installer not properly setting access permissions on application directories.)&lt;br /&gt;
# One application may be used for planting a malicious binary in another application's trusted location. (An example is the Internet Explorer - Safari blended threat vulnerability)&lt;br /&gt;
# The application searches for a binary in untrusted locations, possibly on remote file systems. (A typical example is a Windows application loading a dynamic link library from the current working directory after the latter has been set to a network shared folder.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Risk Factors==&lt;br /&gt;
&lt;br /&gt;
* Talk about the [[OWASP Risk Rating Methodology|factors]] that make this attack likely or unlikely to actually happen&lt;br /&gt;
* You can mention the likely technical impact of an attack&lt;br /&gt;
* The [business impact] of an attack is probably conjecture, leave it out unless you're sure&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
=== Insecure Access Permissions-based Attack ===&lt;br /&gt;
&lt;br /&gt;
# A Windows application installer creates a root directory (C:\Application) and installs the application in it, but fails to limit write access to the directory for non-privileged users.&lt;br /&gt;
# Suppose the application (C:\Application\App.exe) loads the WININET.DLL library by calling LoadLibrary(&amp;quot;WININET.DLL&amp;quot;). This library is expected to be found in the Windows System32 folder.&lt;br /&gt;
# Local user A plants a malicious WININET.DLL library in C:\Application&lt;br /&gt;
# Local user B launches the application, which loads and executes the malicious WININET.DLL instead of the legitimate one.&lt;br /&gt;
&lt;br /&gt;
=== Current Working Directroy-based Attack ===&lt;br /&gt;
&lt;br /&gt;
# Suppose a Windows application loads the DWMAPI.DLL library by calling LoadLibrary(&amp;quot;DWMAPI.DLL&amp;quot;). This library is expected to be found in the Windows System32 folder, but only exists on Windows Vista and Windows 7.&lt;br /&gt;
# Suppose the application is associated with the &amp;quot;.bp&amp;quot; file extension.&lt;br /&gt;
# The attacker sets up a network shared folder and places files honeypot.bp and DWMAPI.DLL in this folder (possibly marking the latter as hidden).&lt;br /&gt;
# The attacker invites a Windows XP user to visit the shared folder with Windows Explorer.&lt;br /&gt;
# When the user double-clicks on honeypot.bp, user's Windows Explorer sets the current working directory to the remote share and launches the application for opening the file.&lt;br /&gt;
# The application tries to load DWMAPI.DLL, but failing to find it in the Windows system directories, it loads and executes it from the attacker's network share.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Threat Agents]]==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Internet_attacker]]&lt;br /&gt;
* [[:Category:Intranet_attacker]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Attacks]]==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Embedded Malicious Code]]&lt;br /&gt;
* [[Code Injection]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Vulnerabilities]]==&lt;br /&gt;
&lt;br /&gt;
* [[Portability Flaw]]&lt;br /&gt;
* [[Process Control]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Related [[Controls]]==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
'''Note1:''' A reference to related [http://cwe.mitre.org/ CWE] or [http://capec.mitre.org/ CAPEC] article should be added when exists. Eg:&lt;br /&gt;
&lt;br /&gt;
* [http://cwe.mitre.org/data/definitions/114.html CWE-114: Process Control]&lt;br /&gt;
* [http://www.securityfocus.com/archive/1/510426 Elevation of Privilege Vulnerability in iTunes for Windows] - example of  Insecure Access Permissions-based Attack&lt;br /&gt;
* [http://www.securityfocus.com/archive/1/513190 Remote Binary Planting in Apple iTunes for Windows] - example of Current Working Directroy-based Attack &lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Mitjak</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Session_Fixation&amp;diff=10057</id>
		<title>Session Fixation</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Session_Fixation&amp;diff=10057"/>
				<updated>2006-09-29T12:46:21Z</updated>
		
		<summary type="html">&lt;p&gt;Mitjak: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Vulnerability}}&lt;br /&gt;
{{Template:Fortify}}&lt;br /&gt;
&lt;br /&gt;
==Abstract==&lt;br /&gt;
&lt;br /&gt;
Authenticating a user without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
Session fixation vulnerabilities occur when:&lt;br /&gt;
&lt;br /&gt;
# A web application authenticates a user without first invalidating the existing session, thereby continuing to use the session already associated with the user. &lt;br /&gt;
# An attacker is able to force a known session identifier on a user so that, once the user authenticates, the attacker has access to the authenticated session. &lt;br /&gt;
&lt;br /&gt;
In the generic exploit of session fixation vulnerabilities, an attacker creates a new session on a web application and records the associated session identifier. The attacker then causes the victim to authenticate against the server using that session identifier, giving the attacker access to the user's account through the active session.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
The following example shows a snippet of code from a J2EE web application where the application authenticates users with LoginContext.login() without first calling HttpSession.invalidate().&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	private void auth(LoginContext lc, HttpSession session) throws LoginException {&lt;br /&gt;
		...&lt;br /&gt;
		lc.login();&lt;br /&gt;
		...&lt;br /&gt;
	} &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to exploit the code above, an attacker could first create a session (perhaps by logging into the application) from a public terminal, record the session identifier assigned by the application, and reset the browser to the login page. Next, a victim sits down at the same public terminal, notices the browser open to the login page of the site, and enters credentials to authenticate against the application. The code responsible for authenticating the victim continues to use the pre-existing session identifier, now the attacker simply uses the session identifier recorded earlier to access the victim's active session, providing nearly unrestricted access to the victim's account for the lifetime of the session.&lt;br /&gt;
&lt;br /&gt;
Even given a vulnerable application, the success of the specific attack described here is dependent on several factors working in the favor of the attacker: access to an unmonitored public terminal, the ability to keep the compromised session active and a victim interested in logging into the vulnerable application on the public terminal. In most circumstances, the first two challenges are surmountable given a sufficient investment of time. Finding a victim who is both using a public terminal and interested in logging into the vulnerable application is possible as well, so long as the site is reasonably popular. The less well known the site is, the lower the odds of an interested victim using the public terminal and the lower the chance of success for the attack vector described above.&lt;br /&gt;
&lt;br /&gt;
The biggest challenge an attacker faces in exploiting session fixation vulnerabilities is inducing victims to authenticate against the vulnerable application using a session identifier known to the attacker. In the example above, the attacker did this through a direct method that is not subtle and does not scale suitably for attacks involving less well-known web sites. However, do not be lulled into complacency; attackers have many tools in their belts that help bypass the limitations of this attack vector. The most common technique employed by attackers involves taking advantage of cross-site scripting or HTTP response splitting vulnerabilities in the target site [1]. By tricking the victim into submitting a malicious request to a vulnerable application that reflects JavaScript or other code back to the victim's browser, an attacker can create a cookie that will cause the victim to reuse a session identifier controlled by the attacker.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that cookies are often tied to the top level domain associated with a given URL. If multiple applications reside on the same top level domain, such as bank.example.com and recipes.example.com, a vulnerability in one application can allow an attacker to set a cookie with a fixed session identifier that will be used in all interactions with any application on the domain example.com [2].&lt;br /&gt;
&lt;br /&gt;
Other attack vectors include DNS poisoning and related network based attacks where an attacker causes the user to visit a malicious site by redirecting a request for a valid site. Network based attacks typically involve a physical presence on the victim's network or control of a compromised machine on the network, which makes them harder to exploit remotely, but their significance should not be overlooked. Less secure session management mechanisms, such as the default implementation in Apache Tomcat, allow session identifiers normally expected in a cookie to be specified on the URL as well, which enables an attacker to cause a victim to use a fixed session identifier simply by emailing a malicious URL.&lt;br /&gt;
&lt;br /&gt;
==Related Threats==&lt;br /&gt;
&lt;br /&gt;
==Related Attacks==&lt;br /&gt;
&lt;br /&gt;
[[Session Hijacking]]&lt;br /&gt;
&lt;br /&gt;
==Related Vulnerabilities==&lt;br /&gt;
&lt;br /&gt;
==Related Countermeasures==&lt;br /&gt;
&lt;br /&gt;
[[Category:Session Management]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
[1] Fortify Descriptions. http://vulncat.fortifysoftware.com.&lt;br /&gt;
&lt;br /&gt;
[2] D. Whalen. The Unofficial Cookie FAQ. http://www.cookiecentral.com/faq/#3.3.&lt;br /&gt;
&lt;br /&gt;
[3] ACROS Security. http://www.acrossecurity.com/papers/session_fixation.pdf.&lt;br /&gt;
&lt;br /&gt;
==Categories==&lt;br /&gt;
&lt;br /&gt;
{{Template:Stub}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Session Management Vulnerability]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Java]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Code Snippet]]&lt;/div&gt;</summary>
		<author><name>Mitjak</name></author>	</entry>

	</feed>