Difference between revisions of "Template:Infobox bug/sandbox/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrandonXLF
imported>BrandonXLF
 
(10 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
== Parameters ==
 
== Parameters ==
  
{{Parameter names example|name|logo|logo size|logo alt|logo caption|image|image size|image alt|image caption|screenshot|screenshot size|screenshot alt|screenshot caption|CVE|discovered|patched|discovered by|affected hardware|affected software|used by|website}}
+
{{Parameter names example|_template=|name|logo|logo size|logo alt|logo caption|image|image size|image alt|image caption|screenshot|screenshot size|screenshot alt|screenshot caption|CVE|cve|discovered|patched|discovered by|affected hardware|affected software|used by|website|v2_base|v2_ref|v2_impact|v2_exploitability|v2_AV|v2_AC|v2_AU|v2_I|v2_A|v3_base|v3_ref|v3_impact|v3_exploitability|v3_AV|v3_AC|v3_PR|v3_UI|v3_S|v3_C|v3_I|v3_A}}
  
 
{|
 
{|
 
|- style="vertical-align:top;"
 
|- style="vertical-align:top;"
 
| {{Pre2|scroll|2=
 
| {{Pre2|scroll|2=
<nowiki>{{Infobox bug
+
<nowiki>
 +
{{Infobox bug/sandbox
 
| name =  
 
| name =  
 
| logo =  
 
| logo =  
Line 24: Line 25:
 
| screenshot alt =  
 
| screenshot alt =  
 
| screenshot caption =  
 
| screenshot caption =  
| CVE =  
+
| CVE =
 
| discovered =  
 
| discovered =  
 
| patched =  
 
| patched =  
Line 32: Line 33:
 
| used by =  
 
| used by =  
 
| website =  
 
| website =  
}}</nowiki>
+
<!-- CVSS v2 -->
 +
| v2_base =
 +
| v2_ref =
 +
| v2_impact =
 +
| v2_exploitability =
 +
| v2_AV =
 +
| v2_AC =
 +
| v2_AU =
 +
| v2_I =
 +
| v2_A =
 +
<!-- CVSS v2 -->
 +
| v3_base =
 +
| v3_ref =
 +
| v3_impact =
 +
| v3_exploitability =
 +
| v3_AV =
 +
| v3_AC =
 +
| v3_PR =
 +
| v3_UI =
 +
| v3_S =
 +
| v3_C =
 +
| v3_I =
 +
| v3_A =
 +
}}
 +
</nowiki>
 
}}
 
}}
 
| {{Pre2|scroll|2=
 
| {{Pre2|scroll|2=
Line 64: Line 89:
 
== Examples ==
 
== Examples ==
  
{{Infobox bug
+
{{Infobox bug/sandbox
 
| name = Heartbleed
 
| name = Heartbleed
| logo = Heartbleed.svg
+
| image = Heartbleed.svg
| logo size = 180px
+
| image_size = 180px
| logo caption = Logo representing Heartbleed. Security company [[Codenomicon]] gave Heartbleed both a name and a logo, contrbuting to public awareness of the issue.
+
| caption = Logo representing Heartbleed. Security company [[Codenomicon]] gave Heartbleed both a name and a logo, contrbuting to public awareness of the issue.
 
| CVE = CVE-2014-0160
 
| CVE = CVE-2014-0160
 
| discovered = {{Start date and age|2014|4|1}}
 
| discovered = {{Start date and age|2014|4|1}}
 
| patched = {{Start date and age|2014|4|7}}
 
| patched = {{Start date and age|2014|4|7}}
| discovered by = Neel Mehta
+
| discoverer = Neel Mehta
| affected hardware =
 
 
| affected software = [[OpenSSL]] (1.0.1)
 
| affected software = [[OpenSSL]] (1.0.1)
 
| website = {{URL|heartbleed.com}}
 
| website = {{URL|heartbleed.com}}
 +
<!-- CVSS v2 -->
 +
|v2_base = 5
 +
|v2_impact = 2.9
 +
|v2_exploitability = 10
 +
|v2_AV = Network
 +
|v2_AC = Low
 +
|v2_AU = None
 +
|v2_C = Partial
 +
|v2_I = None
 +
|v2_A = None
 
}}
 
}}
 
{|
 
{|
Line 82: Line 116:
 
<nowiki>{{Infobox bug
 
<nowiki>{{Infobox bug
 
| name = Heartbleed
 
| name = Heartbleed
| logo = Heartbleed.svg
+
| image = Heartbleed.svg
| logo size = 180px
+
| image_size = 180px
| logo caption = Logo representing Heartbleed. Security company [[Codenomicon]] gave Heartbleed both a name and a logo, contrbuting to public awareness of the issue.
+
| caption = Logo representing Heartbleed. Security company [[Codenomicon]] gave Heartbleed both a name and a logo, contrbuting to public awareness of the issue.
 
| CVE = CVE-2014-0160
 
| CVE = CVE-2014-0160
 
| discovered = {{Start date and age|2014|4|1}}
 
| discovered = {{Start date and age|2014|4|1}}
 
| patched = {{Start date and age|2014|4|7}}
 
| patched = {{Start date and age|2014|4|7}}
| discovered by = Neel Mehta
+
| discoverer = Neel Mehta
 
| affected software = [[OpenSSL]] (1.0.1)
 
| affected software = [[OpenSSL]] (1.0.1)
 
| website = {{URL|heartbleed.com}}
 
| website = {{URL|heartbleed.com}}
 +
<!-- CVSS v2 -->
 +
|v2_base = 5
 +
|v2_impact = 2.9
 +
|v2_exploitability = 10
 +
|v2_AV = Network
 +
|v2_AC = Low
 +
|v2_AU = None
 +
|v2_C = Partial
 +
|v2_I = None
 +
|v2_A = None
 
}}</nowiki>}}
 
}}</nowiki>}}
 
|}
 
|}
 
{{clear}}
 
{{clear}}
  
{{Infobox bug
+
{{Infobox bug/sandbox
 
| name = Shellshock  
 
| name = Shellshock  
 
| logo = Shellshock-bug.png
 
| logo = Shellshock-bug.png
Line 118: Line 162:
 
| logo = Shellshock-bug.png
 
| logo = Shellshock-bug.png
 
| logo size = 180px
 
| logo size = 180px
| logo caption = A simple Shellshock logo, similar to the [[Heartbleed]] bug logo <!--logo caption-->
+
| logo caption = A simple Shellshock logo, similar to the [[Heartbleed]] bug logo
 
| CVE =  
 
| CVE =  
 
CVE-2014-6271
 
CVE-2014-6271
Line 137: Line 181:
 
<templatedata>
 
<templatedata>
 
{
 
{
  "description": "Used to add an infobox to article about software bugs, vulnerabilities and security bugs.",
+
"description": "Used to add an infobox to article about software bugs, vulnerabilities and security bugs.",
  "format": "block",
+
"format": "block",
  "params": {
+
"params": {
    "name": {
+
"name": {
      "label": "Name",
+
"label": "Name",
      "description": "The name of the bug",
+
"description": "The name of the bug",
      "example": "Shellshock",
+
"example": "Shellshock",
      "autovalue": "{{BASEPAGENAME}}"
+
"autovalue": "{{BASEPAGENAME}}",
    },
+
"type": "wiki-page-name"
    "logo": {
+
},
      "label": "Logo",
+
"logo": {
      "description": "The logo of the bug",
+
"label": "Logo",
      "example": "example.png"
+
"description": "The logo of the bug",
    },
+
"example": "example.png",
    "logo size": {
+
"type": "wiki-file-name",
      "label": "Logo size",
+
"autovalue": "",
      "description": "The size of the logo",
+
"suggested": true
      "example": "180px"
+
},
    },
+
"logo size": {
    "logo alt": {
+
"label": "Logo size",
      "label": "Logo alt",
+
"description": "The size of the logo",
      "description": "Alternate text for the logo"
+
"example": "180px",
    },
+
"type": "number"
    "logo caption": {
+
},
      "label": "Logo alt",
+
"logo alt": {
      "description": "Caption for the logo",
+
"label": "Logo alt",
      "example": "A simple Shellshock logo, similar to the [[Heartbleed]] bug logo"
+
"description": "Alternate text for the logo",
    },
+
"type": "string"
    "image": {
+
},
      "label": "Image",
+
"logo caption": {
      "description": "The image of the bug",
+
"label": "Logo caption",
      "example": "example.png"
+
"description": "Caption for the logo",
    },
+
"example": "A simple Shellshock logo, similar to the [[Heartbleed]] bug logo",
    "image size": {
+
"type": "string"
      "label": "Image size",
+
},
      "description": "The size of the image",
+
"image": {
      "example": "180px"
+
"label": "Image",
    },
+
"description": "The image of the bug",
    "image alt": {
+
"example": "example.png",
      "label": "Image alt",
+
"type": "wiki-file-name"
      "description": "Alternate text for the image"
+
},
    },
+
"image size": {
    "image caption": {
+
"label": "Image size",
      "label": "Image alt",
+
"description": "The size of the image",
      "description": "Caption for the image"
+
"example": "180px",
    },
+
"type": "number"
    "screenshot": {
+
},
      "label": "Screenshot",
+
"image alt": {
      "description": "The screenshot of the bug",
+
"label": "Image alt",
      "example": "example.png"
+
"description": "Alternate text for the image",
    },
+
"type": "string"
    "screenshot size": {
+
},
      "label": "Screenshot size",
+
"image caption": {
      "description": "The size of the screenshot",
+
"label": "Image caption",
      "example": "180px"
+
"description": "Caption for the image",
    },
+
"type": "string"
    "screenshot alt": {
+
},
      "label": "Screenshot alt",
+
"screenshot": {
      "description": "Alternate text for the screenshot"
+
"label": "Screenshot",
    },
+
"description": "The screenshot of the bug",
    "screenshot caption": {
+
"example": "example.png",
      "label": "Screenshot alt",
+
"type": "wiki-file-name",
      "description": "Caption for the screenshot"
+
"suggested": true
    },
+
},
    "CVE": {
+
"screenshot size": {
      "aliases": ["cve"],
+
"label": "Screenshot size",
      "label": "Common identification(s)",
+
"description": "The size of the screenshot",
      "description": "Common Vulnerabilities and Exposures (CVE) identification(s) for the bug",
+
"example": "180px",
      "example": "CVE-XXXX-YYYY"
+
"type": "number"
    },
+
},
    "discovered": {
+
"screenshot alt": {
      "label": "Discovery date",
+
"label": "Screenshot alt",
      "description": "Year and/or date of discovery",
+
"description": "Alternate text for the screenshot",
      "example": "{{Start date and age|2019|1|20}}"
+
"type": "string"
    },
+
},
    "patched": {
+
"screenshot caption": {
      "label": "patch date",
+
"label": "Screenshot caption",
      "description": "Year and/or date of patch release",
+
"description": "Caption for the screenshot",
      "example": "{{Start date and age|2019|1|21}}"
+
"type": "string"
    },
+
},
    "discovered by": {
+
"CVE": {
      "label": "Discovered by",
+
"aliases": [
      "description": "Discoverer of the bug",
+
"cve"
      "example": "[[John Smith]]"
+
],
    },
+
"label": "CVE identification(s)",
    "affected hardware": {
+
"description": "Common Vulnerabilities and Exposures (CVE) identification(s) for the bug",
      "label": "Affected hardware",
+
"example": "CVE-XXXX-YYYY",
      "description": "Hardware affected by the bug",
+
"type": "string",
      "example": "[[Qualcomm Snapdragon]]"
+
"suggested": true
    },
+
},
    "affected software": {
+
"discovered": {
      "label": "Affected software",
+
"label": "Discovery date",
      "description": "Software affected by the bug" ,
+
"description": "Year and/or date of discovery",
      "example": "[[macOS]]"
+
"example": "{{Start date and age|2019|1|20}}",
    },
+
"type": "date",
    "used by": {
+
"suggested": true
      "label": "Used by",
+
},
      "description": "Know groups/people who use(d) the exploit"
+
"patched": {
    },
+
"label": "Patch date",
    "website": {
+
"description": "Year and/or date of patch release",
      "label": "Website",
+
"example": "{{Start date and age|2019|1|21}}",
      "description": "Website for the bug",
+
"type": "date",
      "example": "{{URL|http://heartbleed.com/}}"
+
"suggested": true
    }
+
},
  }
+
"discovered by": {
 +
"label": "Discovered by",
 +
"description": "Discoverer of the bug",
 +
"example": "[[John Smith]]",
 +
"type": "string"
 +
},
 +
"affected hardware": {
 +
"label": "Affected hardware",
 +
"description": "Hardware affected by the bug",
 +
"example": "[[Qualcomm Snapdragon]]",
 +
"type": "string"
 +
},
 +
"affected software": {
 +
"label": "Affected software",
 +
"description": "Software affected by the bug",
 +
"example": "[[macOS]]",
 +
"type": "string"
 +
},
 +
"used by": {
 +
"label": "Used by",
 +
"description": "Know groups/people who use(d) the exploit",
 +
"type": "string"
 +
},
 +
"website": {
 +
"label": "Website",
 +
"description": "Website for the bug",
 +
"example": "{{URL|http://heartbleed.com/}}",
 +
"type": "url",
 +
"suggested": true
 +
}
 +
}
 
}
 
}
 
</templatedata>
 
</templatedata>
  
 
== Tracking category ==
 
== Tracking category ==
* {{clc|Pages using Template:Infobox bug with unknown parameters}}
+
* {{Category link with count|Pages using Template:Infobox bug with unknown parameters}}
  
 
== See also ==
 
== See also ==

Latest revision as of 04:37, 26 June 2019

This infobox is used to add an infobox to article about software bugs, vulnerabilities and security bugs.

Parameters

Template:Parameter names example

Template:Pre2 Template:Pre2

Examples

Heartbleed
Heartbleed.svg
CVE identifier
Date discoveredTemplate:Start date and age
Date patchedTemplate:Start date and age
Affected softwareOpenSSL (1.0.1)
WebsiteTemplate:URL
CVSS v2
Base score5
Impact score2.9
Exploitability score10
Attack vectorNetwork
Attack complexityLow
AuthenticationNone
ConfidentialityNetwork
IntegrityNone
AvailabilityNone
Template:Pre2
Shellshock
Shellshock-bug.png
A simple Shellshock logo, similar to the Heartbleed bug logo
CVE identifiers
Date discoveredTemplate:Start date and age
Date patchedTemplate:Start date and age
Affected softwareGNU Bash (1.0.3–2.05b)
Template:Pre2

Template data

Used to add an infobox to article about software bugs, vulnerabilities and security bugs.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The name of the bug

Example
Shellshock
Auto value
{{BASEPAGENAME}}
Pageoptional
Logologo

The logo of the bug

Example
example.png
Auto value
Filesuggested
Logo sizelogo size

The size of the logo

Example
180px
Numberoptional
Logo altlogo alt

Alternate text for the logo

Stringoptional
Logo captionlogo caption

Caption for the logo

Example
A simple Shellshock logo, similar to the [[Heartbleed]] bug logo
Stringoptional
Imageimage

The image of the bug

Example
example.png
Fileoptional
Image sizeimage size

The size of the image

Example
180px
Numberoptional
Image altimage alt

Alternate text for the image

Stringoptional
Image captionimage caption

Caption for the image

Stringoptional
Screenshotscreenshot

The screenshot of the bug

Example
example.png
Filesuggested
Screenshot sizescreenshot size

The size of the screenshot

Example
180px
Numberoptional
Screenshot altscreenshot alt

Alternate text for the screenshot

Stringoptional
Screenshot captionscreenshot caption

Caption for the screenshot

Stringoptional
CVE identification(s)CVE cve

Common Vulnerabilities and Exposures (CVE) identification(s) for the bug

Example
CVE-XXXX-YYYY
Stringsuggested
Discovery datediscovered

Year and/or date of discovery

Example
{{Start date and age|2019|1|20}}
Datesuggested
Patch datepatched

Year and/or date of patch release

Example
{{Start date and age|2019|1|21}}
Datesuggested
Discovered bydiscovered by

Discoverer of the bug

Example
[[John Smith]]
Stringoptional
Affected hardwareaffected hardware

Hardware affected by the bug

Example
[[Qualcomm Snapdragon]]
Stringoptional
Affected softwareaffected software

Software affected by the bug

Example
[[macOS]]
Stringoptional
Used byused by

Know groups/people who use(d) the exploit

Stringoptional
Websitewebsite

Website for the bug

Example
{{URL|http://heartbleed.com/}}
URLsuggested

Tracking category

See also