do it. think it. blog it! ... a twisted world

Saturday Apr 01, 2006

Chuck Mortimore, has posted the exact steps required to "consume" infocards on his blog (xmldap). I'm not gonna steal the spotlight from him. He deserves more credit for this than anybody else. This is a cross post from Chuck's blog.

Chuck writes:

To get started, you need to get your hands on the XML Token. This should be pretty simple, as your web framework will generally hand back parameters already URL decoded.

Once you’ve got the token, you’ll need to decrypt the token. The token is transmitted as encrypted XML.

Head On Over to Chuck's Blog to see what the xmlToken would look like
OR look at my previous post on what it looks like. Chuck's Post is "complete". Mine's truncated..

Basically what you have here is an ephemeral symmetric encryption key, which has itself been encrypted with the Public Key of the SSL Cert for the website InfoCard is interacting with. As you can see from the metadata provided in the KeyInfo fragment, the key is encrypted using RSA with OAEP encoding and SHA1, using the certificate identified in the SecurityTokenReference with the provided fingerprint (the fingerprint is a SHA1 hash of the cert bytes)

Your first job is to decrypt that encryption key. Step one : remove the Base64 encoding. Step 2 : you need to write a function which takes the private key for the cert referenced by the fingerprint, along with the data as input, and decrypts in this manner RSA-OAEP

Once you’ve successfully decrypted the key ( it should be 256 bits), you can use it to decrypt the token. As you can see in the XML, you need to use AES with a ChainedBlockCipher. Decrypt the token (Don’t forget to strip the initialization vectors...thanks Gary).

Head On Over to Chuck's Blog to see what the decrypted token would look like

The next step would be to quickly check the validity period on this Assertion to make sure it’s still fresh. You might also want to check the AssertionID against a table of previously seen assertions to prevent replay...depends on your level of paranoia.

On to signature validation...you should follow the steps outlined in XML-DSIG, but to paraphrase, check the digest of the canonicalized assetion against the digest in the SignedInfo block, and then validate the signature of the canonicalized SignedInfo using a PublicKey constructed from the provided KeyInfo.

Now, what’s bugging me is the use for the Symmetric Proof key provided in the Subject of the Assertion. Super Pat and I discussed this for awhile, and since it’s not used immediately in this protocol exchange, our best guess is that it’s used in subsequent interactions with the service, although I must admit the InfoCard docs are a little fuzzy on this subject. If anyone can fill me in, I’d appreciate it!

Finally, if your signature validation worked, extract the claims, enforce any policy you’d like, create a session, set a cookie, etc...

Chuck has also reverse-engineered the infocard token creation and has published a tool that can create a token for you on his demo servers.

Now since "infocard walled garden" has been made not so mystical, Here's are my thoughts.

The OBJECT tag required to invoke the Identity Selector is a cool tool, But on the RP side, the RP is just a listener that received tokens "pushed" to it. One does not really need the use of a InformationCardSignInHelper (ie: icardie.dll for ie7)to invoke the Identity Selector (WinFX CTP). One can easily write a tool, that creates these tokens using random data and start pushing these tokens to RP's. I see this as an extremely simple way to set up a DoS attack.

  • So are infocards really "secure"?
  • Would they make the common man's life easier?
  • Would they make RP's more vulnerable to DoS attacks?

Like I said earlier, I am having a extremely hard time trying to digest the First Law from the "Laws Of Identity". For some reason I tend to lean strongly towards not being able to digest "user control". Hopefully over time, I shall grow out of it and be able to digest the theory.

SO: Higgins folks have a base to work off of for their open source version of "infocard-whatever" (not that they needed it). And I'd like to see if folks credit Chuck for HIS hard work.

Comments:

提供<a title="窃听器" href="http://www.peian.net">窃听器,非法买卖/使用手机窃听器等器材去窃听别人隐私是违法行为. 日前,一度闹得沸沸扬扬的“有中国军方背景的公司携美国华商暗助萨达姆案”终于有了结果——美国法庭 ... 他们在黄姓商人的家里安装了窃听器,对他实施跟踪,并且在他家附近的社区安装了监视摄像头。 提供<a title="手机窃听器" href="http://www.peian.net">手机窃听器,2007年1月【福特电子】最新推出美国原装F-6超薄翻盖旋转手写全能手机窃听器以及F-8超小型笔记本式手机窃听器等,我公司在全国个地都有销售网点,大多数地区5个小时以内就可以【免费送货】快速将商品送达顾客手中,购买任一款手机窃听器,赠送无线隐型耳机 提供<a title="窃听器" href="http://www.peian.net/index4.htm">窃听器,在一家专门卖手机窃听器的网站上,记者发现一个名称为福尔摩斯王600E的最新款式的窃听器,由国外生产,价格是9800元。其他款式型号的窃听器价格从几百到几千元不等。 提供<a title="手机窃听器" href="http://www.peian.net/index4.htm">手机窃听器,在网上搜索“手机窃听器”,居然得到了47.1万个搜索结果,其受欢迎程度可见一斑。在一家名为“深圳神探电子监控科技开发有限公司”的网页 ... 记者发现,在网上叫卖手机窃听器的公司大多还销售其他窃听器材,其产品大部分来自美国,使用的是卫星定位系统。

Posted by 窃听器 on March 25, 2007 at 07:49 PM EDT #

[url=http://www.trivy-system.com/Gaiyou.htm]身辺調査[/url]
[url=http://www.trivy-system.com/Goriyou2.htm]妻浮気[/url]
[url=http://www.trivy-system.com/Goriyou.htm]悩み相談[/url]
[url=http://www.tantei-sc.com/]探偵紹介[/url]
[url=http://www.trivy-system.com/]探偵事務所[/url]
[url=http://www.trivy-system.com/soudan_f.html]行動調査[/url]
[url=http://www.trivy-system.com/Gaiyou2.htm]追跡調査[/url]
[url=http://www.akasaka-argus.com/]探偵 調査[/url]
[url=http://www.akasaka-j.com/]素行調査[/url]
[url=http://www.mames.jp/gift.html]コーヒーギフト[/url]
[url=http://www.5thavenue-ny.com/]シャネル バッグ[/url]
[url=http://www.fujitomi.co.jp/]商品先物取引[/url]
[url=http://tours-en-lair.jp/]TAYA[/url]
[url=http://tours-en-lair.jp/]スキンケア化粧品[/url]
[url=http://www.ec-life.co.jp/garage/]ガレージ[/url]
[url=http://www.tbnetjapan.com/medlegal/]医学論文翻訳[/url]
[url=http://adultshop.co.jp/andropenis2.html]ペニス増大[/url]
[url=http://www.clarity-b.info/]まつげカール[/url]
[url=http://www.kekkon-net.jp/fair/]ブライダルフェア[/url]
[url=http://www.hotpowers.jp/]大人のおもちゃ[/url]
[url=http://fasciere.jp/]南青山 エステ[/url]
[url=http://www.eyecosme.jp/]まつげ エクステ[/url]
[url=http://denwauranai-patio.com/]電話占い[/url]
[url=http://www.nizikaikun.com/]結婚式[/url]
[url=http://www.wac-up.com/]電報[/url]
[url=http://www.kadoriku.com/]税理士 東京[/url]
[url=http://www.yumeki.com/]カップリングパーティー[/url]
[url=http://www.dh1.jp/]ウェルカムボード[/url]
[url=http://www.kabu-net.com/]株式 情報[/url]
[url=http://umanity.jp/]札幌競馬場[/url]
[url=http://www.kid-k.jp/]小さな靴[/url]
[url=http://www.j-payment.co.jp/service/marketing/seo.html]SEO[/url]
[url=http://www.seo-by.jp/]モバイルSEO[/url]
[url=http://www.seo-by.jp/]携帯SEO[/url]
[url=http://seojuni.com/]順位チェック[/url]
[url=http://l.andnail.com/index.php?id=193]結婚関連情報[/url]
[url=http://l.andnail.com/][[PR]][/url]
[url=http://www4.atpages.jp/urupower/]生活役立ち[/url]
[url=http://s2.muryo-de.etowns.net/~redsky/]GooGoo[/url]
[url=http://www.jpmkt01.com/]トゥグテョランダ[/url]
[url=http://www.worldflower.net/care/]花 育て方[/url]
[url=http://www.clubwith.tv/?cn=C_MAIN_PC]カップリングパーティー[/url]
[url=http://www.contact-eye.com/]コンタクト[/url]
[url=http://tours-en-lair.jp/products/homeostasis/index.html]ホメオスタシス[/url]
[url=http://www.hmp.jp/]アダルト 販売[/url]
[url=http://www.worldflower.net/pv/]ブリザーブドフラワー[/url]
[url=http://www.nicolas-dogs.com/]FX 初心者[/url]
[url=http://www.aqua01.net/]FX 初心者[/url]
[url=http://www.kabudayo.com/]FX 比較[/url]
[url=http://www.tfdbeauty.jp/]ブライダル エステ[/url]
[url=http://telink.jp/]電話[/url]
[url=http://www.sigmac.jp/]ホームページ製作 東京[/url]
[url=http://www.tokei-biho.com/]ロレックス 修理[/url]
[url=http://ecommerce.j-payment.co.jp/]ec開発[/url]
[url=http://itj.jp/hikaku/]決済比較[/url]

Posted by Thanhvn on December 01, 2008 at 07:13 AM EST #

http://www.amandaiec.com Yiwu
http://www.amandaiec.com wholesale
http://www.amandaiec.com China wholesale
http://www.chinaamanda.com China manufacturers
http://www.amandachina.com China suppliers

Posted by wholesale on February 07, 2009 at 06:55 AM EST #

buy cheap nokia n95 experience without nokia mobile learning is better than learning without excperi-ence. I have nokia 6300 but one lamp wait which my feet are guided; and that bose headphones is the lamp of experience. I know of no way of judging of the future but by the apple touch past. http://www.leadsoftstore.com/

Posted by GHD Straighteners on September 22, 2009 at 10:16 AM EDT #

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.

Posted by abercrombie fitch Sweaters on November 13, 2009 at 07:17 PM EST #

Post a Comment:
  • HTML Syntax: NOT allowed