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.
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.
Posted by 窃听器 on March 25, 2007 at 07:49 PM EDT #
http://www.hulanwang.net
http://www.huojia2008.net/
http://www.huojia.name
http://www.njhuojia.com/
http://www.hulanwang.net/hl
http://www.huojia.name/hj
http://www.hulanwang.net/hlw/
http://blog.sina.com.cn/zdrack
http://www.huojia2008.net/product/601.htm
http://www.huojia2008.net/product/521.htm
http://www.huojia.name/product-14.asp.htm
http://www.huojia.name/product-15.asp.htm
http://www.njhuojia.com/Chinese/ProductShow.asp?ArticleID=156
http://www.njhuojia.com/Chinese/ProductShow.asp?ArticleID=152
http://www.huojia.name/hj/products11.asp.htm
http://www.huojia.name/hj/products_03.asp.htm
http://www.njhuojia.com/default.asp
http://www.njhuojia.com/Chinese/ProductShow.asp?ArticleID=157
http://zdrack.hisuppliers.com/product/13006.html
http://www.huojia2008.net/product/522.htm
http://www.huojia2008.net/product/21.htm
http://www.huojia.name/product-1.asp.htm
http://zdrack.machine.com.cn/
http://zdqx.photo.hexun.com/34502550_d.html
http://zdracks.atobo.com.cn/CN/ProductInfo/6/419424.html
Posted by 4752856 on July 31, 2008 at 09:30 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 #
http://www.tennis-rackets.us/
http://www.brandshandbags.com
http://www.poloshirtsshop.com
http://www.ed-hardy-clothing.us
http://www.crazypurchase.com
http://www.tennisracketsshop.com
http://www.mybrandclothing.com
http://www.airshoes.co.uk
http://www.airshoes.us
http://www.sellpoloshirts.com
http://www.ed-hardy-clothing.co.uk
http://www.clothingjeans.co.uk
http://www.kleidungjeans.de
Posted by wholesale from china on August 11, 2009 at 03:53 AM EDT #
http://www.hayawaridenpo.com電報
http://www.miraiclub.jp有料老人ホーム
http://www.miniren.net/hp薬剤師 求人
http://www.citinet.jp/chiba橋市 不動産
http://www.citinet.jp/tokyoeast/足立区 不動産
http://www.citinet.jp/yokohama神奈川区 不動産
http://www.ooimoney.com/クレジットカード 現金化
http://www.kinutashika.net/矯正歯科</a>
http://websiteintegration.net/網頁設計</a>
Posted by gffg on September 05, 2009 at 12:50 AM EDT #
http://www.hayawaridenpo.com
http://www.miraiclub.jp
http://www.miniren.net/hp
http://www.citinet.jp/chiba
http://www.citinet.jp/tokyoeast
http://www.citinet.jp/yokohama
http://www.ooimoney.com/
http://www.kinutashika.net/
http://websiteintegration.net
Posted by gfhdfgh on September 07, 2009 at 04:57 AM EDT #
<a href=” http://www.dokechi.com/hardware/searchresult~110,,.html”>床暖房 価格</a>
<a href=” http://www.dokechi.com/search/searchresult.asp?DBID=3&CategoryID=14”>香水 価格</a>
<a href=” http://www.dokechi.com/search/searchresult.asp?DBID=3&CategoryID=9”>財布 価格</a>
<a href=” http://www.dokechi.com/search/searchresult.asp?DBID=3&CategoryID=15”>アクセサリー 価格</a>
Posted by 114.246.176.57 on September 16, 2009 at 11:02 PM EDT #
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 #
http://www.keibayosou.org/
http://nowandzen.wonderful.to/
http://info.bent.jp/
http://ichi.voxx.jp/
Posted by keib on September 25, 2009 at 11:40 PM EDT #
<a href="http://www.dokechi.com/hardware/searchresult~110,,.html">床暖房 価格</a>
<a href="http://www.dokechi.com/search/searchresult.asp?DBID=3&CategoryID=14">香水 価格</a>
<a href="http://www.dokechi.com/search/searchresult.asp?DBID=3&CategoryID=9">財布 価格</a>
<a href="http://www.dokechi.com/search/searchresult.asp?DBID=3&CategoryID=15">アクセサリー 価格</a>
<a href="http://www.dokechi.com/hardware/pricecmp~2,67,67004998.html">REGZA 42Z8000価格</a>
<a href="http://www.dokechi.com/hardware/pricecmp~1,67,67005023.html">BRAVIA KDL-40F5価格</a>
<a href="http://www.dokechi.com/hardware/pricecmp~1,15,15003268.html"> EOS 50D 価格</a>
<a href="http://www.dokechi.com/hardware/pricecmp~2,96,96002789.html"> D700 価格</a>
<a href="http://www.dokechi.com/hardware/pricecmp~1,15,15003920.html"> COOLPIX P90 価格</a>
Posted by ewr on November 03, 2009 at 09:42 PM EST #
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 #
http://www.justforsundae.com/
http://www.jumbositio.com/
http://www.taddonley.com/
http://www.jamesquillsmithband.com/
http://www.bressmusic.com/
Posted by just on November 18, 2009 at 08:02 PM EST #