Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How reliable/secure are getenv('User') & WScript.Network
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00953302
Message ID:
00954707
Views:
16
Hi Rod,

So the worst case scenario: User1 somehow manages to start the application with environment variable username set to User2. Your application uses GetEnv() and gets faked User2 value.

I think this is possible when using CreateProcess API to start an executable. This function has input parameter pEnvironment that can be a pointer to environment block for the new process.

In such case the bad guy must write a small program -- launcher for the application.

* * *
How about using instead of GetEnv() some API functions like:
GetUserName
GetNetworkParams
NetGetJoinInformation
...
Previous
Reply
Map
View

Click here to load this message in the networking platform