-
Notifications
You must be signed in to change notification settings - Fork 55
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
SCARD_SCOPE_USER is probably safer #30
Comments
Hi @cheburashka, thank you for taking your time to inspect the code and opening the issue. 👍 I really appreciate it. In the first place, I have to say that I am not an expert on the pcsclite. I created (forked) this library mainly because of the needs for a stable and maintained foundation for my higher-level nfc-pcsc. Nevertheless I've invested a lot of time over the years maintaining it and ensuring compatibility with the latest Node.js. 😄 And I appreciate every contribution because it might address the things I might never come across. My thoughts:
Looking forward to hearing from you. Thanks again. 🙂 |
Hi @pokusew , I noticed that the wrapper is establishing the PC/SC context as system which in most cases is not needed and could create elevated privilege risks. The default should be SCARD_SCOPE_USER and maybe with an optional parameter, a developer could request system scope if is absolutely needed.
node-pcsclite/src/pcsclite.cpp
Line 71 in ca9b0ba
If you agree, I can send a Pull Request although the change is trivial in that line.
The text was updated successfully, but these errors were encountered: