Skip to content

Information Exposure Through an Error Message [VID:209:source-code/user/session/session.go:76] #57

@veracode-workflow-app-preprod

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions