Skip to content
TORNLIFE More

stuffer

Community role stuffer [1748047] Tester

7 archived posts · profile observed · 4 days ago

Tenure

Recent replies

newest first
stuffer [1748047] Tester

In Pass API_KEY via Authorization headers not URL

>but URL params aren't, and can't be.
Sorry to say, but this is false information.
The only thing available to man in the middle (like your provider) is host. Whole request is encrypted and is not available to any man in the middle without having their CAs installed.
This is actually the reason why in dictatorship states like russia dpi blocks the IP instead of uri if "forbidden materials" are behind https and only specific uri if http
Btw you can use dns over tls to make it completely invisible


>Using a credential in the URL is 100% against the standard
Basic auth works with credentials in the url and it is per standard. If torn used basic auth, say with pair USER and PASSWORD, I would be able to login with https://USER:PASSWORD@www.torn.com/ as url. Must add that it will be transformed into a header. But still, credentials in uris are completely valid and per standard
2 likes
stuffer [1748047] Tester

In Pass API_KEY via Authorization headers not URL

All the reasons are good and all, and the bearer tokens, oauth and stuff were created for a reason, don't get me wrong.

But, with your permission, I would like to make a few counter arguments:

1: the standard mentioned describes the basic auth which allows stuff like schema://user:password@url-is-here/. So using the token in the url is not against the standard. It just "not" by the standard

3 In context of header vs param in url, It is just wrong? Everything in http is text (except content in some cases) including url, headers, cookies etc. But https helps a lot, as everything is encrypted.

4: With successful man in the middle, nothing will help. The tokens must have expiration time. So time to time one must renew it, and the attacker will receive the key for generation of the tokens anyway

>advanced programmers are surely able to use the URL with the requirement of auth headers, are they not?
It means support of two systems which, advanced programmers try to avoid for sure.
0 likes

Player profile · Search their posts