<?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>ActionscriptとかFlashとか&#124; futurefish &#187; security</title>
	<atom:link href="http://miraigyo.com/blog/archives/category/security/feed" rel="self" type="application/rss+xml" />
	<link>http://miraigyo.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 15 Feb 2011 07:00:21 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flash Player セキュリティについて調べてみたよ</title>
		<link>http://miraigyo.com/blog/archives/68.html</link>
		<comments>http://miraigyo.com/blog/archives/68.html#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:17:20 +0000</pubDate>
		<dc:creator>oreore</dc:creator>
				<category><![CDATA[actionscript3.0]]></category>
		<category><![CDATA[flash player]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://miraigyo.com/blog/?p=68</guid>
		<description><![CDATA[なにやらローカルでswfを起動するときは色々と制限があるのでちょっとしらべてみた。 flash playerのセキュリティサンドボックスは大きく分けて、 リモートサンドボックスとローカルサンドボックスに分類されます。 リモートサンドボックス リモート領域（インターネットのドメイン・サブドメインなど）から開かれたswfファイルにはすべてremoteセキュリティサンドボックスが割りあてられる。 ローカルサンドボックス ローカル領域（ローカルエリア、ユーザのコンピューター）から開かれたswfファイルは ・local-with-filesystem ・local-with-networking ・local-trusted ・AIR アプリケーションサンドボックス（今回は気にしない） のいずれかのセキリティサンドボックスが割り当てられる。 ローカルで開かれたswfにどのサンドボックスが割り当てられるかは 1 コンパイル時にローカルセキュリティサンドボックスタイプを選択しているか。 （パブリッシュ設定＞Flashタブ＞ローカルでの再生に関するセキュリティ　から選択） 2 swfファイルが信頼されれたローカル領域から開かれているか。 によって変わってくる。 ローカル領域の信頼された場所から開かれたswfはlocal-trustedが割り当てられます。 信頼されていない場所から開かれた場合はlocal-with-filesystemまたは、local-with-networkingが割り当てられます。 なんだか文章にすると意味不明。。 こんな感じになる。 各セキュリティの操作はざっと下記のようになっています。 remote（Web上にあるswfはみんなこのタイプだよ。） 操作 ローカル領域 swfの起源区域内にあるリモート領域のソース swfの起源区域外にあるリモート領域のリソース コンテンツの表示 （jpg gif swfなどの読み込み） × ○ ○ データとしてのコンテンツへのアクセス (flvやMP3の再生など) × ○ △ 配布者の許可によってのみ許可 データのロード × ○ △ 配布者の許可によってのみ許可 local-with-filesystem（何も設定せずにパブリッシュしたswfをローカルで実行とこのタイプだよ） 操作 ローカル領域にある 非swfリソース local-with-filesystem.swf ファイル [...]]]></description>
			<content:encoded><![CDATA[<p>なにやらローカルでswfを起動するときは色々と制限があるのでちょっとしらべてみた。</p>
<p>flash playerのセキュリティサンドボックスは大きく分けて、<br />
リモートサンドボックスとローカルサンドボックスに分類されます。</p>
<dl class="data_list">
<dt><strong>リモートサンドボックス</strong></dt>
<dd> リモート領域（インターネットのドメイン・サブドメインなど）から開かれたswfファイルにはすべてremoteセキュリティサンドボックスが割りあてられる。 </dd>
<dt><strong>ローカルサンドボックス</strong></dt>
<dd> ローカル領域（ローカルエリア、ユーザのコンピューター）から開かれたswfファイルは<br />
<span class="list_box"><br />
・local-with-filesystem</p>
<p>・local-with-networking</p>
<p>・local-trusted</p>
<p>・AIR アプリケーションサンドボックス（今回は気にしない）</p>
<p></span><br />
のいずれかのセキリティサンドボックスが割り当てられる。</p>
<p>ローカルで開かれたswfにどのサンドボックスが割り当てられるかは<br />
<span class="list_box"><span id="more-68"></span><br />
1 コンパイル時にローカルセキュリティサンドボックスタイプを選択しているか。<br />
（パブリッシュ設定＞Flashタブ＞ローカルでの再生に関するセキュリティ　から選択）<br />
2 swfファイルが信頼されれたローカル領域から開かれているか。</p>
<p>によって変わってくる。</span></p>
<p>ローカル領域の信頼された場所から開かれたswfはlocal-trustedが割り当てられます。<br />
信頼されていない場所から開かれた場合はlocal-with-filesystemまたは、local-with-networkingが割り当てられます。</p>
</dd>
</dl>
<p>なんだか文章にすると意味不明。。<br />
こんな感じになる。<br />
<img src="http://miraigyo.com/blog/contents/img/local-trusted.gif" alt="" width="500" height="487" /></p>
<p>各セキュリティの操作はざっと下記のようになっています。</p>
<h3>remote<span>（Web上にあるswfはみんなこのタイプだよ。）</span></h3>
<table class="data_table" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th>操作</th>
<th>ローカル領域</th>
<th>swfの起源区域内にあるリモート領域のソース</th>
<th>swfの起源区域外にあるリモート領域のリソース</th>
</tr>
<tr>
<th>コンテンツの表示<br />
（jpg gif swfなどの読み込み）</th>
<td>×</td>
<td>○</td>
<td>○</td>
</tr>
<tr>
<th>データとしてのコンテンツへのアクセス</p>
<p>(flvやMP3の再生など)</th>
<td>×</td>
<td>○</td>
<td>△</p>
<p>配布者の許可によってのみ許可</td>
</tr>
<tr>
<th>データのロード</th>
<td>×</td>
<td>○</td>
<td>△</p>
<p>配布者の許可によってのみ許可</td>
</tr>
</tbody>
</table>
<h3>local-with-filesystem<span>（何も設定せずにパブリッシュしたswfをローカルで実行とこのタイプだよ）</span></h3>
<table class="data_table" border="0" cellspacing="0" cellpadding="0">
<col></col>
<tbody>
<tr>
<th>操作</th>
<th>ローカル領域にある</p>
<p>非swfリソース</th>
<th>local-with-filesystem.swf</p>
<p>ファイル</th>
<th>local-with-networking</p>
<p>ファイル</th>
<th>local-trusted</p>
<p>ファイル</th>
<th>リモート領域のリソース</th>
</tr>
<tr>
<th>コンテンツの表示</p>
<p>（jpg gif swfなどの読み込み）</th>
<td>○</td>
<td>○</td>
<td>×</td>
<td>○</td>
<td>×</td>
</tr>
<tr>
<th>データとしてのコンテンツへのアクセス</p>
<p>(flvやMP3の再生など)</th>
<td>○</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>×</td>
</tr>
</tbody>
</table>
<h3>local-with-networking<span>（パブリッシュ時にリモートを選択するとこのタイプだよ）</span></h3>
<table class="data_table" border="0" cellspacing="0" cellpadding="0">
<col></col>
<tbody>
<tr>
<th>操作</th>
<th>ローカル領域にある</p>
<p>非swfリソース</th>
<th>local-with-filesystem.swf</p>
<p>ファイル</th>
<th>local-with-networking</p>
<p>ファイル</th>
<th>local-trusted</p>
<p>ファイル</th>
<th>リモート領域のリソース</th>
</tr>
<tr>
<th>コンテンツの表示</p>
<p>（jpg gif swfなどの読み込み）</th>
<td>○</td>
<td>×</td>
<td>○</td>
<td>○</td>
<td>○</td>
</tr>
<tr>
<th>データとしてのコンテンツへのアクセス</p>
<p>(flvやMP3の再生など)</th>
<td>×</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>△</p>
<p>配布者の許可によってのみ許可</td>
</tr>
</tbody>
</table>
<h3>local-trusted<span>(信頼されたファイルまたはエリアから実行されるswfはこのタイプだよ。なんでもできるよ。)</span></h3>
<table class="data_table" border="0" cellspacing="0" cellpadding="0">
<col></col>
<tbody>
<tr>
<th>操作</th>
<th>ローカル領域にある</p>
<p>非swfリソース</th>
<th>local-with-filesystem.swf</p>
<p>ファイル</th>
<th>local-with-networking</p>
<p>ファイル</th>
<th>local-trusted</p>
<p>ファイル</th>
<th>リモート領域のリソース</th>
</tr>
<tr>
<th>コンテンツの表示</p>
<p>（jpg gif swfなどの読み込み）</th>
<td>○</td>
<td>○</td>
<td>○</td>
<td>○</td>
<td>○</td>
</tr>
<tr>
<th>データとしてのコンテンツへのアクセス</p>
<p>(flvやMP3の再生など)</th>
<td>○</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>○</td>
</tr>
</tbody>
</table>
<p>ローカルに置いたswfからゴリゴリなんでも出来るようにするにはlocal-trustedサンドボックスにしてやる方法しかないようです。？（AIRは除く）</p>
<p>ではswfにlocal-trustedを付与するにはどのような方法があるのか調べてみました。<br />
１つ目の方法はアドビのサイトで<br />
<a href="http://www.macromedia.com/support/documentation/jp/flashplayer/help/settings_manager04.html">「Flash Playerヘルプ」グローバルセキュリティ設定パネル</a>で任意のフォルダを設定すれば<br />
そのフォルダ以下に設置されたswfはlocal-trustedサンドボックスをなる。<br />
がいちいち何台ものPCにセットアップしてもらうのは大変面倒であまりお仕事では使えない。。。</p>
<p>色々さがしてみると、<br />
設定ファイルを作成すれば、手動で設定できるとのこと。</p>
<p>下記フォルダにFlashPlayerTrustを開き（無い場合は作成する）<br />
Windows: system\Macromed\Flash（例：C:\WINDOWS\system32\Macromed）<br />
ユニークな名前でore.cfgなどを作成します。<br />
テキストエディタなどでlocal-trustedにしたいswfまでのパスを書くだけ。<br />
グローバルセキュリティの設定と同じで許可をフォルダにすることも可能です。</p>
<p>これをインストーラーなどで設置すればよいわけです。</p>
<p>詳しくは下記参照<br />
<a href="http://help.adobe.com/ja_JP/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e3f.html">セキュリティサンドボックス</a><br />
<a href="http://help.adobe.com/ja_JP/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d23.html">Flash Player セキュリティ </a><br />
<a href="http://help.adobe.com/ja_JP/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7c95.html">管理ユーザのコントロール</a><br />
<a href="http://livedocs.adobe.com/flash/9.0_jp/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00001076.html">Flash 開発のための設定ファイルの作成</a><br />
<a href="http://livedocs.adobe.com/flex/2_jp/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00001373.html">FlashPlayerTrust ファイルについて</a></p>
]]></content:encoded>
			<wfw:commentRss>http://miraigyo.com/blog/archives/68.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

