MCPcopy Create free account
hub / github.com/crashappsec/github-analyzer / CollaboratorsWithout2FA

Function CollaboratorsWithout2FA

pkg/issue/issue.go:90–107  ·  view source on GitHub ↗
(
	usersLacking2FA []string,
	resources []resource.Resource,
)

Source from the content-addressed store, hash-verified

88}
89
90func CollaboratorsWithout2FA(
91 usersLacking2FA []string,
92 resources []resource.Resource,
93) Issue {
94 return Issue{
95 ID: AUTH_2FA_COLLABORATOR_DISABLED,
96 Name: AvailableChecks[AUTH_2FA_COLLABORATOR_DISABLED],
97 Severity: severity.Low,
98 Category: category.Authentication,
99 CWEs: []int{308},
100 Description: fmt.Sprintf(
101 "The following collaborators have not enabled 2FA: %s",
102 strings.Join(usersLacking2FA, ", "),
103 ),
104 Resources: resources,
105 Remediation: "Please see https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication for steps on how to configure 2FA for individual accounts",
106 }
107}
108
109func InsecureWebhookPayloadURL(url string) Issue {
110 return Issue{

Callers 1

Audit2FAMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected