<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theiphonewiki.com/w/index.php?action=history&amp;feed=atom&amp;title=Stack_Cookies</id>
	<title>Stack Cookies - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.theiphonewiki.com/w/index.php?action=history&amp;feed=atom&amp;title=Stack_Cookies"/>
	<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/w/index.php?title=Stack_Cookies&amp;action=history"/>
	<updated>2026-05-17T05:12:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.14</generator>
	<entry>
		<id>https://www.theiphonewiki.com/w/index.php?title=Stack_Cookies&amp;diff=27208&amp;oldid=prev</id>
		<title>Http: initial page with some infos from mdowd's presentation</title>
		<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/w/index.php?title=Stack_Cookies&amp;diff=27208&amp;oldid=prev"/>
		<updated>2012-10-16T23:06:59Z</updated>

		<summary type="html">&lt;p&gt;initial page with some infos from mdowd&amp;#039;s presentation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Since iOS6 a generated stack cookie is placed directly after the saved registers at the bottom of the stack frame. A pointer to the cookie is saved at the top of the stack frame or in a register if it is convenient. The space above the stack pointer is used for called functions if necessary.&lt;br /&gt;
&lt;br /&gt;
In the function epilog the saved stack cookie is verified. The generated value is found by following the saved pointer. A verification failure results in a kernel panic.&lt;br /&gt;
&lt;br /&gt;
 800051FC __epilog                         ; CODE XREF: sub_80004F98+2B4vj&lt;br /&gt;
 800051FC                                  ; sub_80004F98+486vj&lt;br /&gt;
 800051FC          LDR     R0, [SP,#0x2CC+stack_cookie_ptr]&lt;br /&gt;
 800051FE          LDR     R0, [R0]&lt;br /&gt;
 80005200          LDR     R1, [SP,#0x2CC+stack_cookie]&lt;br /&gt;
 80005202          CMP     R0, R1          ; check stack cookie validity&lt;br /&gt;
 80005204          ITTTT EQ&lt;br /&gt;
 80005206          MOVEQ   R0, R4&lt;br /&gt;
 80005208          ADDEQ.W SP, SP, #0x2B4&lt;br /&gt;
 8000520C          POPEQ.W {R8,R10,R11}&lt;br /&gt;
 80005210          POPEQ   {R4-R7,PC}&lt;br /&gt;
 80005212          BL      ___stack_chk_fail&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*[http://conference.hackinthebox.org/hitbsecconf2012kul/materials/D1T2%20-%20Mark%20Dowd%20&amp;amp;amp;%20Tarjei%20Mandt%20-%20iOS6%20Security.pdf Mark Dowd &amp;amp; Tarjei Mandt's iOS6 presentation at HITB 2012 KUL D1T2]&lt;/div&gt;</summary>
		<author><name>Http</name></author>
		
	</entry>
</feed>