cwe

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2020 License: AGPL-3.0 Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CweDictEn = map[string]Cwe{}/* 733 elements not displayed */

CweDictEn is the Cwe dictionary

View Source
var CweDictJa = map[string]Cwe{}/* 146 elements not displayed */

CweDictJa is the Cwe dictionary

View Source
var CweTopTwentyfive2019 = map[string]string{
	"119": "1",
	"79":  "2",
	"20":  "3",
	"200": "4",
	"125": "5",
	"89":  "6",
	"416": "7",
	"190": "8",
	"352": "9",
	"22":  "10",
	"78":  "11",
	"787": "12",
	"287": "13",
	"476": "14",
	"732": "16",
	"434": "16",
	"611": "17",
	"94":  "18",
	"798": "19",
	"400": "20",
	"772": "21",
	"426": "22",
	"502": "23",
	"269": "24",
	"295": "25",
}

CweTopTwentyfive2019 has CWE-ID in CWE Top 25

View Source
var CweTopTwentyfive2019URL = "https://cwe.mitre.org/top25/archive/2019/2019_cwe_top25.html"

CweTopTwentyfive2019URL has CWE Top25 links

View Source
var OwaspTopTen2017 = map[string]string{
	"77":  "1",
	"89":  "1",
	"564": "1",
	"917": "1",

	"287": "2",
	"384": "2",

	"220": "3",
	"310": "3",
	"312": "3",
	"319": "3",
	"326": "3",
	"359": "3",

	"611": "4",

	"22":  "5",
	"284": "5",
	"285": "5",
	"639": "5",

	"2":   "6",
	"16":  "6",
	"388": "6",

	"79": "7",

	"502": "8",

	"223": "10",
	"778": "10",
}

OwaspTopTen2017 has CWE-ID in OWSP Top 10

View Source
var OwaspTopTen2017GitHubURLEn = map[string]string{
	"1":  "https://github.com/OWASP/Top10/blob/master/2017/en/0xa1-injection.md",
	"2":  "https://github.com/OWASP/Top10/blob/master/2017/en/0xa2-broken-authentication.md",
	"3":  "https://github.com/OWASP/Top10/blob/master/2017/en/0xa3-sensitive-data-disclosure.md",
	"4":  "https://github.com/OWASP/Top10/blob/master/2017/en/0xa4-xxe.md",
	"5":  "https://github.com/OWASP/Top10/blob/master/2017/en/0xa5-broken-access-control.md",
	"6":  "https://github.com/OWASP/Top10/blob/master/2017/en/0xa6-security-misconfiguration.md",
	"7":  "https://github.com/OWASP/Top10/blob/master/2017/en/0xa7-xss.md",
	"8":  "https://github.com/OWASP/Top10/blob/master/2017/en/0xa8-insecure-deserialization.md",
	"9":  "https://github.com/OWASP/Top10/blob/master/2017/en/0xa9-known-vulns.md<Paste>",
	"10": "https://github.com/OWASP/Top10/blob/master/2017/en/0xaa-logging-detection-response.md",
}

OwaspTopTen2017GitHubURLEn has GitHub links

View Source
var OwaspTopTen2017GitHubURLJa = map[string]string{
	"1":  "https://github.com/OWASP/Top10/blob/master/2017/ja/0xa1-injection.md",
	"2":  "https://github.com/OWASP/Top10/blob/master/2017/ja/0xa2-broken-authentication.md",
	"3":  "https://github.com/OWASP/Top10/blob/master/2017/ja/0xa3-sensitive-data-disclosure.md",
	"4":  "https://github.com/OWASP/Top10/blob/master/2017/ja/0xa4-xxe.md",
	"5":  "https://github.com/OWASP/Top10/blob/master/2017/ja/0xa5-broken-access-control.md",
	"6":  "https://github.com/OWASP/Top10/blob/master/2017/ja/0xa6-security-misconfiguration.md",
	"7":  "https://github.com/OWASP/Top10/blob/master/2017/ja/0xa7-xss.md",
	"8":  "https://github.com/OWASP/Top10/blob/master/2017/ja/0xa8-insecure-deserialization.md",
	"9":  "https://github.com/OWASP/Top10/blob/master/2017/ja/0xa9-known-vulns.md<Paste>",
	"10": "https://github.com/OWASP/Top10/blob/master/2017/ja/0xaa-logging-detection-response.md",
}

OwaspTopTen2017GitHubURLJa has GitHub links

View Source
var SansTopTwentyfive = map[string]string{
	"89":  "1",
	"78":  "2",
	"120": "3",
	"79":  "4",
	"306": "5",
	"862": "6",
	"798": "7",
	"311": "8",
	"434": "9",
	"807": "10",
	"250": "11",
	"352": "12",
	"22":  "13",
	"494": "14",
	"863": "15",
	"829": "16",
	"732": "17",
	"676": "18",
	"327": "19",
	"131": "20",
	"307": "21",
	"601": "22",
	"134": "23",
	"190": "24",
	"759": "25",
}

SansTopTwentyfive has CWE-ID in CWE/SANS Top 25

View Source
var SansTopTwentyfiveURL = "https://www.sans.org/top25-software-errors/"

SansTopTwentyfiveURL is a URL of sans 25

Functions

This section is empty.

Types

type Cwe

type Cwe struct {
	CweID               string `json:"cweID"`
	Name                string `json:"name"`
	Description         string `json:"description"`
	ExtendedDescription string `json:"extendedDescription"`
	Lang                string `json:"-"`
}

Cwe has CWE information

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL