stoken icon indicating copy to clipboard operation
stoken copied to clipboard

Import token from web

Open Zaba999 opened this issue 8 years ago • 25 comments

Currently it's not possible to import token from web with activation code. On mobile phone it can be done eg using link like: com.rsa.securid://ctkip?scheme=https&url=securid1.access.organization.com:7005/ctkip/services/CtkipService&activationCode=xxxxxxxxxxxx

Is it possible to add this functionality to stoken?

Zaba999 avatar May 18 '16 06:05 Zaba999

what is the content of the response?

esskar avatar May 19 '16 08:05 esskar

I've never actually used CTKIP (my former employer just emailed us the raw XML seed files :scream:) but it is documented in RFC 4758. Your greatest challenge is probably getting RSA Authentication Manager set up locally to test the entire flow end-to-end. If you're friendly with the I.T. guys that would definitely help.

cernekee avatar May 22 '16 02:05 cernekee

Duplicates #27

NemoN avatar Sep 08 '16 08:09 NemoN

Is anyone aware of any implementations of a CT-KIP client on any platform? (besides the closed-source securid clients for win/mac/android/etc)

darkprokoba avatar Nov 17 '16 08:11 darkprokoba

I am actually working on one write now. What i need is a working server that i can use.

or at least someone who is willing to test

esskar avatar Nov 17 '16 14:11 esskar

I'd be willing to test. What do you need from me?

darkprokoba avatar Nov 17 '16 16:11 darkprokoba

well, a working ct-kip url would be nice, i do not have access to an ct-kip server/rsa authentication manager

you may send it by email

esskar avatar Nov 17 '16 16:11 esskar

i am trying to reverse engineer it by creating a self hosted soap service that simulates the ct-kip server part and hitting it with the official RSA securid token app

esskar avatar Nov 17 '16 19:11 esskar

@cernekee can you send me the xml files you have received?

esskar avatar Nov 20 '16 14:11 esskar

I have not received any xml files. Just a CT-KIP url and an activation code.

darkprokoba avatar Nov 21 '16 11:11 darkprokoba

@darkprokoba Are you allowed to send it? Is it reusable?

esskar avatar Nov 21 '16 12:11 esskar

I have the same issue. I have a web import link (CT-KIP) and an activation key. I am getting below error while trying to import.

error: --token string is garbled: General failure

vineethelias avatar Dec 02 '16 08:12 vineethelias

yes, the problem is that nobody of us has access to the rsa authentication manager. i tried to request a demo version, but have no answer from the rsa guys yet.

esskar avatar Dec 02 '16 08:12 esskar

Any news on this front? Are we still blocked by getting the authentication manager?

jsoo1 avatar May 11 '17 15:05 jsoo1

yes. without it, it is hard to reverse-engineer (tm) it

esskar avatar May 15 '17 09:05 esskar

for those with the error: error: --token string is garbled: General failure

.sdtid file extension is actually an .xml file. So changing the .sdtid file extension to .xml and importing the file as usual just works.

salmansamie avatar Jun 30 '17 18:06 salmansamie

@esskar if I can work with you in realtime, I can help you with this - i can generate a new ct-kip URL at any time. it does invalidate my current token to do so, so after any reverse-engineering session, I will need to re-generate a token for my use.

benklop avatar Oct 24 '17 20:10 benklop

@benklop what is your current time zone? I am GMT+11, but GMT-6 at december. December will probably better for me.

esskar avatar Nov 20 '17 10:11 esskar

I've implemented a client that will show the unencrypted version of all the keying material exchanged with the server, at dlenski/rsa_ct_kip:client.py

We still need to work out exactly how the final key of the token relates to the material exchanged, because the RFC is unclear/inconsistent/obfuscated on this subject: https://github.com/cernekee/stoken/issues/27#issuecomment-420438915

If anyone is willing to be a guinea pig and test it with a new authentication token or two, that'd help a lot.

dlenski avatar Sep 12 '18 01:09 dlenski

@dlenski I'd be willing to waste my IT's time to generate a bunch of auth tokens. If you can give me some clues on how to use this.

dedominic-veeder avatar Nov 08 '18 16:11 dedominic-veeder

I was able to use the client tool provided with modifications ( see https://github.com/dlenski/rsa_ct_kip/pull/1 ) but I'm not quite sure what I do with the values I get.

dedominic-veeder avatar Nov 09 '18 16:11 dedominic-veeder

@dedominic-veeder, see #27 for some (hopefully informed) speculation on how to use this client to try to figure out the algorithm for generating the final secrets for the tokens.

dlenski avatar Nov 24 '18 20:11 dlenski

@dedominic-veeder, if you can still generate activation codes… the tool has been considerably cleaned up and should Just Work™. Would be great to have another confirmation.

dlenski avatar Jan 23 '19 19:01 dlenski

The functionality you are looking for is now provided by this project: https://github.com/dlenski/rsa_ct_kip. It converts the URL and activation code to a token file which can be used with stoken.

BastianVoigt avatar Aug 02 '20 11:08 BastianVoigt

rsa_ct_kip deserves to be mentioned in the Readme. Having to download the token from a server is a common approach.

alexvorobiev avatar May 26 '23 23:05 alexvorobiev