-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Passwords leaking into server logs through API #4556
Comments
@skt-jdrzik
The API auth part is already performed using a POST and the parameters are passed into the BOBY as it is recommended for security good practises. So you should write : This should do the trick. |
@nilsteampassnet
Same happens with curl:
This is my nginx config for clarity:
|
@skt-jdrzik You can also give a try using Postman, just to check if the call is correct from your side ;) |
I got some new work assigments and I will not have much time to look deeper into it at the moment, maybe next week. Anyway I tried to debug teampass application and I think problem is in the teampass app code, which does not expect/handle json data in the request:
|
Have you tried with postman? |
I have tried Boomerang - SOAP & REST client with same results...
Maybe there is problem with nginx config, but on next week I will have more time to investigate it... |
First problem can be solved by this fix:
|
Second problem is located in my script and there is a mistake in documentation which is missing information about tags parameter...
|
@nilsteampassnet it seems, that you are not reading POST body (eg. Would you be willing to incorporate it into your API layer? And also, should it be incorporated, how long will it take to get into stable relase in your opinion? |
@nilsteampassnet ping? |
Steps to reproduce
Hello, I want to report two problems with current teampass API...
First problem:
I can login to API with token succesfully, but each time I try add item it always fails.
I am using this python code:
And then response is:
And logs is:
Second problem:
We discovered due API design (despite commands using POST method, passwords are shown as GET parameters) confidential passwords are leaking into webserver+teampass logs (nginx, apache, php-fpm). Could this be reworked to use POST method?
Expected behaviour
Passwords are not shown in logs
Actual behaviour
Passwords are shown in logs
Server configuration
Operating system:
Rocky Linux 9.4
Web server:
nginx/1.20.1
Database:
mariadb-10.5.22-1.el9_2.x86_64
PHP version:
php82-runtime-8.2-5.el9.remi.x86_64
Teampass version:
3.1.3.8
Teampass configuration file:
Client configuration
Browser:
python-httpx/0.26.0
Operating system:
Rocky Linux 9.4
Logs
Web server error log
Log from the web-browser developer console (CTRL + SHIFT + i)
The text was updated successfully, but these errors were encountered: