Re: Ensuring single user only

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



fltcpt@xxxxxxxxx wrote:
My application prompts for a user name and password,
logs on to a remote database and binds to a local
port. Client processes (I have no control of) connect to that
port to get services.

Use a mailslot, named pipe, etc and set the ACL when you create it. You
can't set security on TCP or UDP ports (at least in Windows), and trying to
hook into process launch is not a solution. About the best you can do for
TCP/IP is: listen only on a localhost address (hence only permit connections
from the local machine), get the peer port number, find the process owning
the other end of the connection, and drop connections initiated by other
users.


My problem is, I want to provide service only to the user
who provided the username and password. For example,
on server edition of windows, user A starts my application,
then user B logons to windows on the same PC and connects
to my application... user B (an unauthorized database user
all of a sudden has access to the db) another similar
case is when user B runs things like psexec
(from sysinternals.com) to remotely initiate a process
that connects to my application...
Currently, my application does not authenticate the client
process using passwords because the clients (which I
have no control of) don't provide passwords.

The solution I came up with is that my application will
only provide service when only 1 user is logged on.
My question is, how do I determine that. How do I register
a callback for when user B runs psexec to run something
on the same PC? Also, how does it know users like
System and Local Service don't count??

Thanks.


.



Relevant Pages

  • Re: Remote Admin Tools source code for Delphi 4,5,6 & 7
    ... this way I guess the traffic is outbound form the client to ... be remoted and opens up a channel on the firewall. ... the actual client you are going to remotely control. ... all using the same configuration and one Port on your machine. ...
    (borland.public.delphi.thirdpartytools.general)
  • Service Identification
    ... I have a remote database to pen test. ... Either sniff the records to a text file as they go to the client (I only ... haven't found any information on service identification when no banners ... are present and it runs on a non standard port. ...
    (Pen-Test)
  • Ensuring single user only
    ... logs on to a remote database and binds to a local ... port to get services. ... my application does not authenticate the client ... have no control of) don't provide passwords. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Double Auth with SSH
    ... Not the same passphrase that the rest of the system uses mind. ... Passphrase might be nice but I would rather the control be on the server ... Should the client forget his passphrase a new key would have to be ... Yes I know about changing the port but that is not what I'm looking to do. ...
    (comp.os.linux.security)
  • Re: thin client com ports
    ... I'm glad that you got at least one more client working! ... MCSE, CCEA, Microsoft MVP - Terminal Server ... the COM port settings? ... I am testing several thin clients. ...
    (microsoft.public.windows.terminal_services)