<?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>Handnotes &#187; Security</title>
	<atom:link href="http://memmie.lenglet.name/category/security/feed" rel="self" type="application/rss+xml" />
	<link>http://memmie.lenglet.name</link>
	<description>Some tests, tricks and sugar</description>
	<lastBuildDate>Sat, 03 Oct 2009 14:49:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flash Player local trust</title>
		<link>http://memmie.lenglet.name/security/flash-player-local-trust</link>
		<comments>http://memmie.lenglet.name/security/flash-player-local-trust#comments</comments>
		<pubDate>Fri, 18 Jan 2008 17:44:50 +0000</pubDate>
		<dc:creator>Mem's</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://memmie.lenglet.name/?p=8</guid>
		<description><![CDATA[Ca arrive souvant de devoir tester en locale un fichier flash en dehors du logiciel d&#8217;authoring Flash ou Flex en visualistant soit dans le Standalone Player (Projector) ou avec le plugin d&#8217;un navigateur. Sauf que quand une animation nécéssite à la fois de charger ou lier des éléments local (relatifs) et ditants (absolut avec &#8220;http://&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Ca arrive souvant de devoir tester en locale un fichier flash en dehors du logiciel d&#8217;authoring Flash ou Flex en visualistant soit dans le Standalone Player (Projector) ou avec le plugin d&#8217;un navigateur.<br />
Sauf que quand une animation nécéssite à la fois de charger ou lier des éléments local (relatifs) et ditants (absolut avec &#8220;http://&#8221; ou  &#8220;https://&#8221;) une boite apparait indiquant que animation tente une opération non authorisé.<br />
Tout ça c&#8217;est à cause du fait qu&#8217;il existe 4 zones (&#8220;sandbox&#8221;) (voir 5 pour le sytème de sécurité &lt; FP8) :</p>
<ul>
<li>remote</li>
<li>local-with-filesystem</li>
<li>local-with-networking</li>
<li>local-trusted</li>
</ul>
<p>Par défaut l&#8217;export de Flash (et Flex ?) le fichier flash est authorisé seulement à acceder au fichiers locaux (&#8220;local-with-filesystem&#8221;), configurable dans le panneau d&#8217;export de Flash ou en ajoutant un paramètre de compilation pour le FlexSDK (<code>-use-network=true|false</code>) ou après l&#8217;export, sur un fichier local en utilisant <a href="http://www.adobe.com/support/flashplayer/downloads.html#lcu">Flash Local Content Updater</a> ou <a href="http://www.dengjie.com/?p=315">SWF SandBox Type Switcher</a>. On a alors la possibilité de le configurer soit en &#8220;local-with-filesystem&#8221; ou &#8220;local-with-networking&#8221;.<br />
L&#8217;animation pourra donc acceder soit aux chemins locaux absolus soit aux chemins locaux relatifs (semblables aux chemins distant relatifs) tel que <code>c:\folder01\folder02\file01.ext</code> ou <code>/folder01/folder02/file01.ext</code> ou <code>file:///C:/folder01/folder02/file01.ext</code> ou encore <code>./../folder03/file01</code>. La syntaxe est dépendante du system hôte de l&#8217;animation flash (préférer un syntaxe de type &#8220;file://&#8221; ou relatif avec des séparateur &#8220;/&#8221;).</p>
<p>Seulement c&#8217;est soit tout locale soit seulement accès disants. Pour autoriser les deux à la fois, il existe différentes manière de procéder (<a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000349.html">Overview of permission controls</a>) :</p>
<ul>
<li>Ce rendre sur le <a href="http://www.adobe.com/go/global_security_settings">Global Security Settings panel</a> (<a href="http://www.macromedia.com/support/documentation/fr/flashplayer/help/settings_manager04.html">directement</a>) et d&#8217;ajouter le chemin local absolu du fichier flash (ou d&#8217;un dossier le contenant)</li>
<li>Ajouter un fichier .cfg comportant une ligne par chemin d&#8217;animation locale authorisé dans le dossier <code>%APPDATA%\Macromedia\Flash Player\#Security\FlashPlayerTrust\</code> ou <code>{APP_DATA}/Macromedia/Flash Player/#Security/FlashPlayerTrust/</code></li>
<li>Même chose mais pour le chemin <code>%WINDIR%\system32\Macromed\Flash\FlashPlayerTrust\</code> ou <code>{APP_SUPPORT}/Macromedia/FlashPlayerTrust/</code></li>
</ul>
<p>On peut faire à la barbare et utiliser la dernière méthode en ajoutant un fichier qui contient :</p>
<pre># Authorisation pour tout le disque C
C:&#92;
file:///c:/
# Authorisation pour un emplacement Samba
&#92;&#92;ServerSMB&#92;share&#92;
file://///ServerSMB/share/</pre>
<p>Chaque enregistrement est mis en chemin Windows (pour IE) et en URI<br />
<strong>Ca signifie que tout les flash sur le disque C:&#92; et sur le réseau &#92;&#92;ServerSMB&#92;share&#92; ont les droits Trust !</strong></p>
<p>Plus d&#8217;informations : </p>
<ul>
<li><a href="http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf">Adobe Flash Player 9 Security &#8211; WHITE PAPER</a></li>
<li><a href="http://www.adobe.com/devnet/flashplayer/articles/flash_player_admin_guide/flash_player_admin_guide.pdf">Adobe® Flash® Player Administration Guide</a></li>
<li><a href="http://natejc.com/blog/?p=54">Flash Player 9 Local swf Security by Natejc</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://memmie.lenglet.name/security/flash-player-local-trust/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>As3Crypto</title>
		<link>http://memmie.lenglet.name/flash/actionscript/as3crypto</link>
		<comments>http://memmie.lenglet.name/flash/actionscript/as3crypto#comments</comments>
		<pubDate>Tue, 18 Dec 2007 16:45:14 +0000</pubDate>
		<dc:creator>Mem's</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://memmie.lenglet.name/?p=4</guid>
		<description><![CDATA[Package AS3 supportant beaucoup d&#8217;algorithmes de cryptage/hashage/sécurité Protocols: TLS 1.0 support (partial) Certificates: X.509 Certificate parsing and validation, built-in Root CAs. Public Key Encryption: RSA (encrypt/decrypt, sign/verify) Secret Key Encryption: AES, DES, 3DES, BlowFish, XTEA, RC4 Confidentiality Modes: ECB, CBC, CFB, CFB8, OFB, CTR Hashing Algorithms: MD2, MD5, SHA-1, SHA-224, SHA-256 Paddings available: PKCS#5, PKCS#1 [...]]]></description>
			<content:encoded><![CDATA[<p>Package AS3 supportant beaucoup d&#8217;algorithmes de cryptage/hashage/sécurité</p>
<ul>
<li>Protocols: TLS 1.0 support (partial)</li>
<li>Certificates: X.509 Certificate parsing and validation, built-in Root CAs.</li>
<li>Public Key Encryption: RSA (encrypt/decrypt, sign/verify)</li>
<li>Secret Key Encryption: AES, DES, 3DES, BlowFish, XTEA, RC4</li>
<li>Confidentiality Modes: ECB, CBC, CFB, CFB8, OFB, CTR</li>
<li>Hashing Algorithms: MD2, MD5, SHA-1, SHA-224, SHA-256</li>
<li>Paddings available: PKCS#5, PKCS#1 type 1 and 2</li>
<li>Other Useful Stuff: HMAC, Random, TLS-PRF, some ASN-1/DER parsing</li>
</ul>
<p>Beaucoup mieux que <a href="http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries#corelib">Adobe Core Lib</a> !</p>
<p><a href="http://crypto.hurlant.com/">As3Crypto on hurlant.com</a></p>
<p><a href="http://crypto.hurlant.com/demo/srcview/Crypto.zip">[Original]</a> <a href="/web-archive/Crypto.zip">[Web archive] AS3 Crypto sources</a></p>
]]></content:encoded>
			<wfw:commentRss>http://memmie.lenglet.name/flash/actionscript/as3crypto/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
