-
Notifications
You must be signed in to change notification settings - Fork 95
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
passwords should _not_ use String
type
#393
Comments
Hello @rashtao how you doing? |
Hi @obrunojava , thanks for your offer! In my opinion, the problem cannot be easily fixed, because in the
and Therefore the string will be anyways interned there. In this case the string it is How would you suggest addressing it? |
@nkiesel Is this really an issue?
Other types use a pool also for other values like |
Even if we could avoid interning the password string, this will be effectively a long-living String in the heap, living until the driver will be used, because we need to send this information along with every request. Or instead of it we would have in the heap the entire HTTP From a security standpoint, in my opinion these are vulnerable in the same way to memory dumps attacks. |
Storing / passing passwords as
String
is a common security issue because these password strings will remain in the common String pool for a long time. Instead, passwords should usechar[]
orbyte[]
as types. I see this mistake in quite a few places in the API, but it all starts atcom.arangodb.ArangoDB.Builder#password
The text was updated successfully, but these errors were encountered: