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

Do not include exception message in JSON error result #305

Closed
wants to merge 1 commit into from

Conversation

lauris71
Copy link
Contributor

@lauris71 lauris71 commented Dec 1, 2023

We2 556

Certain libpcsc exceptions contain actual transmitted or expected APDU in message. Passing these to webextension creates a potential risk of leaking sensitive data.

Signed-off-by: Lauris Kaplinski [email protected]

Signed-off-by: Lauris Kaplinski <[email protected]> (+6 squashed commits)
Squashed commits:
[6fb95c8] Fixed catch parameter

Signed-off-by: Lauris Kaplinski <[email protected]>
[0b6f274] Added missed file

Signed-off-by: Lauris Kaplinski <[email protected]>
[11be5f6] Fixed already caught exception issue, updated vcpkgGitCommitId and added some comments

Signed-off-by: Lauris Kaplinski <[email protected]>
[9cec528] Catch all exeptions that contain APDU code in message separately and ensure that it is not leaked to app output

Signed-off-by: Lauris Kaplinski <[email protected]>
[ab43ab3] Fixed a typo

Signed-off-by: Lauris Kaplinski <[email protected]>
[a16c4fd] Do not include actual exception message in result, use generic message instead.
Fixes potential leak of sensitive information as some card exceptions in libpcsc-cpp include expected/actual APDU response

Signed-off-by: Lauris Kaplinski <[email protected]>
@mrts
Copy link
Member

mrts commented May 10, 2024

Closing in favor of #316.

@mrts mrts closed this May 10, 2024
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

Successfully merging this pull request may close these issues.

3 participants