Skip to content

Sensitive information (proxy-auth) is disclosed in system process list #2060

@gfrenoy

Description

@gfrenoy

Describe the bug

When accessing a SOCK5 proxy that requires a password authentication ; one has to provide the password on the command line. What is typically consider as a bad practice [1] since it exposes the password in the system process list.

To Reproduce

ncat --proxy 192.168.1.1:1080 --proxy-type socks5 --proxy-auth user:pass 10.1.2.3 8080

run ps aux and recognize the password is displayed in clear text.

Expected behavior

Support the follow syntax:

export NCAT_PROXY_AUTH="user:pass"
ncat --proxy 192.168.1.1:1080 --proxy-type socks5 10.1.2.3 8080

Additional context

[1] https://www.netmeister.org/blog/passing-passwords.html

Alternative solutions

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions