Skip to content
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

Errors unhandled. (CWE-703) #99

Open
uerkut opened this issue May 30, 2023 · 0 comments
Open

Errors unhandled. (CWE-703) #99

uerkut opened this issue May 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working KONDUKTO

Comments

@uerkut
Copy link

uerkut commented May 30, 2023

A low severity vulnerability has been discovered in your project.

Project Name: LW1

Scanner Name: gosec

Cwe ID: 703

Cwe Name: Improper Check or Handling of Exceptional Conditions

Cwe Link: https://cwe.mitre.org/data/definitions/703.html

File: pkg/kolumba/kolumba.go

Line: 162

Code:

-157 - 			buf.WriteString(fmt.Sprintf("%s: %s\r\n", header.Key, header.Value))
-158 - 		}
-159 - 	}
-160 - 
-161 - 	h := sha1.New()
*162 - 	h.Write([]byte(strconv.Itoa(int(time.Now().UnixNano()))))
-163 - 	boundary := fmt.Sprintf("%x", h.Sum(nil))
-164 - 
-165 - 	if len(mail.Attachments) > 0 {
-166 - 		buf.WriteString("Content-Type: multipart/mixed; boundary=" + boundary + "\r\n")
-167 - 		buf.WriteString("\r\n--" + boundary + "\r\n")

Language: go

Tool Description: Errors unhandled.

Custom Description: test

Kondukto Link: http://localhost:8081/projects/6474356bab04dc78a96a5e5d/vulns/appsec?page=1&perPage=15&id=in:6475bbfa51474a603dcc1e5e
Deeplink: https://cwe.mitre.org/data/definitions/703.html

@uerkut uerkut added bug Something isn't working KONDUKTO labels May 30, 2023
@uerkut uerkut self-assigned this May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working KONDUKTO
Projects
None yet
Development

No branches or pull requests

1 participant