Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Authentication is not possible? #5

Open
danilobasanta opened this issue Jan 14, 2020 · 5 comments
Open

API Authentication is not possible? #5

danilobasanta opened this issue Jan 14, 2020 · 5 comments

Comments

@danilobasanta
Copy link

API Authentication is not possible?
The most API evaluation requires previus authentication to consume many other functions...

@thenorthernpole
Copy link
Contributor

I am sorry, I haven't got a notification about this issue, and thus am responding only now.
Could you please give an example?

@0x3f8
Copy link

0x3f8 commented May 16, 2020

An example would be calling the API and providing a cookie or in many cases a bearer token in the headers such as in this sample request

GET /dev HTTP/1.1
Host: some.api.endpoint.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Connection: close
Upgrade-Insecure-Requests: 1

As a side note: you can run the app through the burp proxy and inject the headers. There are options to capture cookies and extensions to inject other headers as needed, so it's a workaround.

@thenorthernpole
Copy link
Contributor

Will implement. Any preferred way to specify the headers/query params? (such security tokens may appear also in query params). I thought of a cURL-like way.

@0x3f8
Copy link

0x3f8 commented May 18, 2020

I have no preferences but a cURL like way would be convenient and lower the barrier of entry for anyone already familiar with that tool :)

Thanks for the quick response!

@humble-beaver
Copy link

Hello! Would you happen to have any updates on this matter? Workarounds are also welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants