File: SECURITY

package info (click to toggle)
pcsc-lite 1.0.2.beta5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,880 kB
  • ctags: 1,165
  • sloc: sh: 9,016; ansic: 6,752; lex: 219; makefile: 175; perl: 69
file content (21 lines) | stat: -rw-r--r-- 894 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SECURITY

This file will discuss security related issues with pcsc-lite and how to
handle them.

Sometimes it is dangerous to run daemons under a root account.  If there is
a chance to exploit a buffer overflow you can protect sensitive information 
by running it under a different account. It might be useful to create another
user with hardware priveledges and run pcscd as that user.  Be sure this user
can manipulate the server sockets.


Application suggestions:

Recycle SCARDHANDLE's.  It is not good practice to call SCardConnect and wait
for something to occur.  Make your connections short so that your handle
does not become stale and heighten the chance of session guessing.  1.0.0 
releases bind sessions with sockets so other processes cannot guess handles.

Make sure you Disconnect when you are not using the reader.  Also be sure to
ReleaseContext before exiting your program.