<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Haiders WebSpace &#187; Firefox</title>
	<atom:link href="http://blog.creativeitp.com/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creativeitp.com</link>
	<description>Let&#039;s talk about IT</description>
	<lastBuildDate>Fri, 18 Nov 2011 17:36:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Javascript Injection (Cookie Editing)</title>
		<link>http://blog.creativeitp.com/posts-and-articles/javascript/javascript-injection-cookie-editing/</link>
		<comments>http://blog.creativeitp.com/posts-and-articles/javascript/javascript-injection-cookie-editing/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 00:51:52 +0000</pubDate>
		<dc:creator>Haider al-Khateeb</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Attack]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://blog.creativeitp.com/?p=138</guid>
		<description><![CDATA[Your browser’s address bar (URL bar) can be used to inject JavaScript code directly into the webpage you are visiting without reloading the page. The following codes are useful to do cookie editing: First, visit the targeted webpage and inject the following code to view realted cookie’s fields and the values assigned to them. javascript:alert&#40;document.cookie&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>Your browser’s address bar (URL bar) can be used to inject JavaScript code directly into the webpage you are visiting without reloading the page. The following codes are useful to do cookie editing:</p>
<p>First, visit the targeted webpage and inject the following code to view realted cookie’s fields and the values assigned to them.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span><span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Second, to edit a certain value use:<br />
<span id="more-138"></span><br />
</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">cookie</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Field=myValue&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>For example, if the following field exist:</p>
<p><b>active=no</b></p>
<p>The value can be changed to <b>yes</b> with the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">cookie</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;active=yes&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>If the field’s name does not exist, it will be created.<br />
To have more control over cookies, refer to a proper tutorial and inject the codes in a similar way.</p>
<p>In addition, there are cookies editors available online such as the following PlugIn for Mozilla FireFox:</p>
<p><b>Add N Edit Cookies</b><br />
Homepage: <a href="http://addneditcookies.mozdev.org" target="_blank">http://addneditcookies.mozdev.org</a>.<br />
Download latest release from: <a href="https://addons.mozilla.org/en-US/firefox/addon/573" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/573</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creativeitp.com/posts-and-articles/javascript/javascript-injection-cookie-editing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

