Hello,
My name is Emma, I am conducting an academic study on possible credential exposure in public GitHub repositories.
While analyzing this repository, I found a string that may represent a credential. I'm including the code snippet below containing possible leakage. To avoid exposing sensitive information publicly, I marked the sensitive information.
Could you please help clarify whether the detected string is:
- a real credential, or
- a placeholder / example value?
Thank you for your time.
Code snippet (sensitive values masked):
session("id", user.id.toString());
if (user.getToken() == null)
return CtrlUser.resetToken(true);
return redirect(destination);
}
// private static String loginApplicationSecret = "Se****Key";
// private static String generateSessionToken(User user) {
// String secret = user.getEmail() + Long.toString(user.lastLogin.getTime()) + Login.loginApplicationSecret;
// try {
// return MessageDigest.getInstance("SHA-512").digest(secret.getBytes()).toString();
// } catch (NoSuchAlgorithmException e) {
// throw new RuntimeException(e);
Thank you in advance for your time - I really appreciate it!
Sincerely,
Emma
Hello,
My name is Emma, I am conducting an academic study on possible credential exposure in public GitHub repositories.
While analyzing this repository, I found a string that may represent a credential. I'm including the code snippet below containing possible leakage. To avoid exposing sensitive information publicly, I marked the sensitive information.
Could you please help clarify whether the detected string is:
Thank you for your time.
Code snippet (sensitive values masked):
Thank you in advance for your time - I really appreciate it!
Sincerely,
Emma