|
|
|
session.Values["govwa_session"] = false |
|
err = session.Save(r, w) //safe session and send it to client as cookie |
|
|
|
if err != nil { |
|
log.Println(err.Error()) |
|
} |
|
|
|
return |
|
} |
|
|
Filename: source-code/user/session/session.go
Line: 76
CWE: 209 (Information Exposure Through an Error Message)
The application calls the log::Println() function, which may expose information about the application logic or other details such as the names and versions of the application container and associated components. This information can be useful in executing other attacks and can also enable the attacker to target known vulnerabilities in application components. The first argument to Println() contains data from an error message (possibly containing untrusted data). The data from an error message (possibly containing untrusted data) originated from earlier calls to error.Error, and github.com.gorilla.sessions.CookieStore.Get. Ensure that error codes or other messages returned to end users are not overly verbose. Sanitize all messages of any sensitive information that is not absolutely necessary. References: CWE/nDon't know how to fix this? Don't know why this was reported?
Get Assistance from Veracode
govwanew//user/session/session.go
Lines 71 to 81 in 2729495
Filename: source-code/user/session/session.go
Line: 76
CWE: 209 (Information Exposure Through an Error Message)
The application calls the log::Println() function, which may expose information about the application logic or other details such as the names and versions of the application container and associated components. This information can be useful in executing other attacks and can also enable the attacker to target known vulnerabilities in application components. The first argument to Println() contains data from an error message (possibly containing untrusted data). The data from an error message (possibly containing untrusted data) originated from earlier calls to error.Error, and github.com.gorilla.sessions.CookieStore.Get. Ensure that error codes or other messages returned to end users are not overly verbose. Sanitize all messages of any sensitive information that is not absolutely necessary. References: CWE/nDon't know how to fix this? Don't know why this was reported?
Get Assistance from Veracode