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

Q: Reuse of browser session with pytos #23

Open
gthieleb opened this issue Sep 23, 2019 · 2 comments
Open

Q: Reuse of browser session with pytos #23

gthieleb opened this issue Sep 23, 2019 · 2 comments

Comments

@gthieleb
Copy link

Background: tufin is placed behind a corporate SSO portal that only allows PKI card based authentication.
PKI card is not properly usable in context of the cmd.exe or linux shell.

Question is if it is possible to reuse a browser based established session in pytox. The idea I have in mind is to export the cookie from browser and extract session information to create a pytox session object.

@marioland
Copy link
Contributor

In theorie yes. If you re-send your cookie bag to the web server, it should allow the request. But in the real world you need to test it. If there is a web application firewall in front of the web server, it might does some fingerprinting on your request and detects session hijacking. As this is a OWASP top 10 attack a lot of products will prevent it.
Nevertheless, if you are careful with http headers(also order of header counts) and send the request from the same IP you might have a chance.

@gthieleb
Copy link
Author

Thanks @marioland for your detailed answer and pointing out your concerns on that.

If reusage hijacking is unwanted from security scope I will look for an alternative way to make use pytos.

Do you have an idea how to start with smart card authentication in python?

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

2 participants