All fixtures · Hostile input (each one attack) · hostile/19-reference-names.dh.md
14 problem(s) parse() reported
- line 7: [[svg:https://198.51.100.7/logo.svg "a URL"]]: the name is a URL; the package never fetches: store the part with the host and give it a name (a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it)
- line 9: [[svg://203.0.113.9/x.svg "a URL with no scheme"]]: the name is a URL; the package never fetches: store the part with the host and give it a name (a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it)
- line 11: [[svg:www.example.com "a host name"]]: the name is a URL; the package never fetches: store the part with the host and give it a name (a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it)
- line 13: [[chart:../../secrets "a path"]]: the name is a path; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it
- line 15: [[chart:folder/file "a path with a slash"]]: the name is a path; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it
- line 17: [[chart:.hidden "a dot first"]]: the name is a path; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it
- line 19: [[interactive:javascript:alert(1) "a scheme"]]: the name has a scheme ("javascript:"); a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it
- line 21: [[interactive:data:text/html,hi "data"]]: the name has a scheme ("data:"); a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it
- line 23: [[terminal:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "a name of 135"]]: the name is 135 characters; at most 128
- line 25: [[chart:naïve "a letter outside ASCII"]]: the name holds "ï"; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it
- line 31: [[svg:https://198.51.100.7/a.svg]]: the name is a URL; the package never fetches: store the part with the host and give it a name (a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it)
- line 31: [[chart:a/b "x"]]: the name is a path; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it
- line 31: [[chart:sales "unclosed label]]: the label has no closing quote; write the label in double quotes on one line
- line 33: [[chart:sales extra words "label"]]: after the name comes only a label in double quotes, then "]]": [[chart:sales "label"]]
Source
---
title: "Reference names that are refused"
---
# Reference names
[[svg:https://198.51.100.7/logo.svg "a URL"]]
[[svg://203.0.113.9/x.svg "a URL with no scheme"]]
[[svg:www.example.com "a host name"]]
[[chart:../../secrets "a path"]]
[[chart:folder/file "a path with a slash"]]
[[chart:.hidden "a dot first"]]
[[interactive:javascript:alert(1) "a scheme"]]
[[interactive:data:text/html,hi "data"]]
[[terminal:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "a name of 135"]]
[[chart:naïve "a letter outside ASCII"]]
[[chart:sales "<script>window.__pwned = 1</script>"]]
[[chart:sales "<img src=x onerror=alert(1)>"]]
Chips too: [[svg:https://198.51.100.7/a.svg]], [[chart:a/b "x"]] and [[chart:sales "unclosed label]].
[[chart:sales extra words "label"]]
An unclosed one is text: [[chart:sales "label"
[[chart:x [[chart:y]]
LLM view
---
title: "Reference names that are refused"
source: hostile/19-reference-names.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->
# Reference names
[[svg:https://198.51.100.7/logo.svg "a URL"]]
[[svg://203.0.113.9/x.svg "a URL with no scheme"]]
[[svg:www.example.com "a host name"]]
[[chart:../../secrets "a path"]]
[[chart:folder/file "a path with a slash"]]
[[chart:.hidden "a dot first"]]
[[interactive:javascript:alert(1) "a scheme"]]
[[interactive:data:text/html,hi "data"]]
[[terminal:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "a name of 135"]]
[[chart:naïve "a letter outside ASCII"]]
[[chart:sales "<script>window.__pwned = 1</script>"]]
[[chart:sales "<img src=x onerror=alert(1)>"]]
Chips too: [[svg:https://198.51.100.7/a.svg]], [[chart:a/b "x"]] and [[chart:sales "unclosed label]].
[[chart:sales extra words "label"]]
An unclosed one is text: [[chart:sales "label"
[[chart:x [[chart:y]]Reference names
reference: not shown [[svg:https://198.51.100.7/logo.svg "a URL"]]: the name is a URL; the package never fetches: store the part with the host and give it a name (a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it) (line 7)
reference: not shown [[svg://203.0.113.9/x.svg "a URL with no scheme"]]: the name is a URL; the package never fetches: store the part with the host and give it a name (a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it) (line 9)
reference: not shown [[svg:www.example.com "a host name"]]: the name is a URL; the package never fetches: store the part with the host and give it a name (a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it) (line 11)
reference: not shown [[chart:../../secrets "a path"]]: the name is a path; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it (line 13)
reference: not shown [[chart:folder/file "a path with a slash"]]: the name is a path; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it (line 15)
reference: not shown [[chart:.hidden "a dot first"]]: the name is a path; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it (line 17)
reference: not shown [[interactive:javascript:alert(1) "a scheme"]]: the name has a scheme ("javascript:"); a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it (line 19)
reference: not shown [[interactive:data:text/html,hi "data"]]: the name has a scheme ("data:"); a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it (line 21)
reference: not shown [[terminal:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "a name of 135"]]: the name is 135 characters; at most 128 (line 23)
reference: not shown [[chart:naïve "a letter outside ASCII"]]: the name holds "ï"; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it (line 25)
chart<script>window.__pwned = 1</script>
chart<img src=x onerror=alert(1)>
Chips too: svghttps://198.51.100.7/a.svgNot shown: the name is a URL; the package never fetches: store the part with the host and give it a name (a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it), chartxNot shown: the name is a path; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it and chartsalesNot shown: the label has no closing quote; write the label in double quotes on one line.
reference: not shown [[chart:sales extra words "label"]]: after the name comes only a label in double quotes, then "]]": [[chart:sales "label"]] (line 33)
An unclosed one is text: [[chart:sales "label"
[[chart:x charty