decidim-dev 0.31.8 → 0.31.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/decidim/dev/dummy_resources_controller.rb +1 -1
- data/app/packs/stylesheets/decidim/dev/_rack_profiler.scss +10 -0
- data/config/rubocop/decidim-linters/configuration.yml +2 -1
- data/lib/decidim/dev/admin_engine.rb +3 -0
- data/lib/decidim/dev/assets/malicious_svg_alt_glyph_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animate_color_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_attribute_names_event_handler.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_attribute_names_list.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_color_profile.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_data_uri.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_data_uri_parameter.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_animation_gradient_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_base.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_base_child_element.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_base_protocol_relative.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_clip_path_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_color_profile_element_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_color_profile_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_comment_first.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_empty_string_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_empty_string_single_quote_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_escaped_quote_unquoted_value_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_escaped_quote_unquoted_value_single_quote_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_hex_escape_crlf_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_hex_escape_crlf_single_quote_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_hex_escape_newline_external_reference.svg +2 -0
- data/lib/decidim/dev/assets/malicious_svg_css_hex_escape_newline_single_quote_external_reference.svg +2 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_function.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_set_escaped_quote_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_set_nested_url_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_image_set_quote_parentheses_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_string_newline_external_reference.svg +2 -0
- data/lib/decidim/dev/assets/malicious_svg_css_url_opposite_quote_nested_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_css_url_opposite_quote_nested_script.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_base64_not_last_parameter.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_base64_parameter_lookalike.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_fragment.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_malformed_base64.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_malformed_document.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_max_depth_exceeded.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_data_uri_percent_decoded_base64.svg +5 -0
- data/lib/decidim/dev/assets/malicious_svg_filter_element_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_filter_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_font_face_uri_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_gradient_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_marker_start_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_mpath_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_pattern_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_protocol_relative_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_stroke_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_text_path_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/malicious_svg_tref_external_reference.svg +1 -0
- data/lib/decidim/dev/assets/spoofed_svg_comment_first.svg +1 -0
- data/lib/decidim/dev/assets/test_animation_attribute_names_list.svg +7 -0
- data/lib/decidim/dev/assets/test_animation_data_uri_parameter.svg +7 -0
- data/lib/decidim/dev/assets/test_animation_percent_encoded_fragment.svg +7 -0
- data/lib/decidim/dev/assets/test_comment_first.svg +2 -0
- data/lib/decidim/dev/assets/test_css_image_set_nested_relative_url.svg +1 -0
- data/lib/decidim/dev/assets/test_css_unclosed_comment.svg +2 -0
- data/lib/decidim/dev/assets/test_css_url_opposite_quote.svg +12 -0
- data/lib/decidim/dev/assets/test_data_uri_fragment.svg +1 -0
- data/lib/decidim/dev/assets/test_data_uri_max_depth.svg +1 -0
- data/lib/decidim/dev/assets/test_data_uri_parameters.svg +1 -0
- data/lib/decidim/dev/assets/test_data_uri_percent_decoded_base64.svg +6 -0
- data/lib/decidim/dev/assets/test_doctype_name_on_next_line.svg +4 -0
- data/lib/decidim/dev/assets/test_link_data_document.svg +9 -0
- data/lib/decidim/dev/assets/test_link_non_web_scheme.svg +7 -0
- data/lib/decidim/dev/assets/test_long_comment_first.svg +2 -0
- data/lib/decidim/dev/assets/test_processing_instruction_first.svg +3 -0
- data/lib/decidim/dev/assets/test_reference_elements_resolved_in_document.svg +26 -0
- data/lib/decidim/dev/assets/test_relative_base.svg +2 -0
- data/lib/decidim/dev/assets/test_relative_image_function.svg +8 -0
- data/lib/decidim/dev/assets/test_root_relative_reference.svg +7 -0
- data/lib/decidim/dev/auth_engine.rb +3 -0
- data/lib/decidim/dev/engine.rb +3 -0
- data/lib/decidim/dev/rubocop/cop/decidim/organization_scoped_finder.rb +285 -24
- data/lib/decidim/dev/test/base_spec_helper.rb +4 -0
- data/lib/decidim/dev/version.rb +1 -1
- metadata +83 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 604f69c8a342917e5d538f0df520a7986b93e5ef87b78a325e466d29f31a39c5
|
|
4
|
+
data.tar.gz: 45e51cb259ecb2ecc4975490f804fe1c119a1e5445a7cbc7d637d57294852459
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 403ec3ba4174e298ee5370d8f6987c421cfee7b571d849a9a1aefcb668ed3897e0e1312471041cd43f513ec09f09e973f95911cda252cf5cde4df331149b9154
|
|
7
|
+
data.tar.gz: dbccd41c5ad391fa990c7706351e755afb445fe76a10b163f25182245021e8987ba75ec39289f1a5e111853977f7cd446f6ac2f0f4e01e5f580791c9055133ec
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
.profiler-results.profiler-bottom {
|
|
2
2
|
bottom: 26px !important;
|
|
3
3
|
z-index: 88888 !important;
|
|
4
|
+
|
|
5
|
+
// Keep the popup within the viewport when it has a lot of content (e.g.
|
|
6
|
+
// rendered partials). It is anchored to the results container, whose
|
|
7
|
+
// height can grow with the number of profiled requests, so we pin it to
|
|
8
|
+
// the bottom and cap its height instead of relying on the height computed
|
|
9
|
+
// by rack-mini-profiler.
|
|
10
|
+
.profiler-popup {
|
|
11
|
+
bottom: 1px !important;
|
|
12
|
+
max-height: calc(100vh - 60px) !important;
|
|
13
|
+
}
|
|
4
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16"><text><altGlyph xlink:href="https://tracker.example.org/font.svg#base" unicode="A">A</altGlyph></text></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect width="16" height="16"><animateColor attributeName="fill" to="url(https://tracker.example.org/paint.svg#base)" dur="1s"/></rect></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16"><animate attributeNames="href onload" values="#none;alert('xss')" dur="1s" fill="freeze"/></image></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16"><animate attributeNames="href xlink:href" values="#none;https://tracker.example.org/track.gif" dur="1s" fill="freeze"/></image></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><set attributeName="color-profile" to="url(https://tracker.example.org/profile.icc)"/></g><rect width="16" height="16"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16"><animate attributeName="href" to="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxzY3JpcHQ+YWxlcnQoMSk8L3NjcmlwdD48L3N2Zz4=" dur="1s" fill="freeze"/></image></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16"><animate attributeName="href" to="data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cscript%3Ealert%281%29%3C/script%3E%3C/svg%3E" dur="1s" fill="freeze"/></image></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><linearGradient><animate attributeName="href" to="https://tracker.example.org/gradient.svg#base" dur="1s"/></linearGradient></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:base="https://tracker.example/" viewBox="0 0 16 16"><image href="track.png" width="1" height="1"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g xml:base="https://tracker.example/"><image href="track.png" width="1" height="1"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:base="//evil.example.org/" viewBox="0 0 16 16"><use href="sprite.svg#icon"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect width="16" height="16" clip-path="url(https://tracker.example.org/clip.svg#clip)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><color-profile src="https://tracker.example.org/profile.icc"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect width="16" height="16" color-profile="url(https://tracker.example.org/profile.icc)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- Exported logo --><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><script>alert("xss")</script><circle cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: url(""); mask-image: url(https://tracker.example.org/track.gif); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
data/lib/decidim/dev/assets/malicious_svg_css_empty_string_single_quote_external_reference.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: url(''); mask-image: url(https://tracker.example.org/track.gif); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
data/lib/decidim/dev/assets/malicious_svg_css_escaped_quote_unquoted_value_external_reference.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: url(local\"); mask-image: url(https://tracker.example.org/track.gif); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: url(local\'); mask-image: url(https://tracker.example.org/track.gif); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: url("\68 ttps://tracker.example.org/track.gif"); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
data/lib/decidim/dev/assets/malicious_svg_css_hex_escape_crlf_single_quote_external_reference.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: url('\68 ttps://tracker.example.org/track.gif'); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>circle { fill: #000; background-image: image("https://tracker.example.org/track.gif"); }</style><circle cx="8" cy="8" r="8"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: image-set("local\"'x" 3x, 'other' 2x, url(https://tracker.example.org/track.gif) 1x); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: image-set( url(https://tracker.example.org/track.gif) 1x); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
data/lib/decidim/dev/assets/malicious_svg_css_image_set_quote_parentheses_external_reference.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: image-set("local)'x" 3x, 'other' 2x, url(https://tracker.example.org/track.gif) 1x); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
data/lib/decidim/dev/assets/malicious_svg_css_url_opposite_quote_nested_external_reference.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%3E%3Cimage%20href='https://tracker.example.org/track.gif'/%3E%3C/svg%3E"); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%3E%3Cscript%3Ealert%281%29%3C/script%3E%3C/svg%3E"); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;base64;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cscript%3Ealert%281%29%3C/script%3E%3C/svg%3E"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;base64x,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cscript%3Ealert%281%29%3C/script%3E%3C/svg%3E"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cscript%3Ealert%281%29%3C/script%3E%3C/svg%3E#not-part-of-the-data"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxzY3JpcHQ+YWxlcnQoMSk8L3NjcmlwdD48L3N2Zz4=!!!"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Ccircle%20r%3D%221%22%3E%3C/svg%3E"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PGltYWdlIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgaHJlZj0iZGF0YTppbWFnZS9zdmcreG1sO2Jhc2U2NCxQSE4yWnlCNGJXeHVjejBpYUhSMGNEb3ZMM2QzZHk1M015NXZjbWN2TWpBd01DOXpkbWNp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xKcVVsVmlWM2hMVTNwR1ExTkhTa2xWYkhCWFRXeEtlbFV4Vm05aE1rNUhZMFZzVm1KVWJGSldWRUp6VGtaU2RHSkZjR0ZOYTFwSlZtMDFRMWxWTVhSYU0yUldVbXMxUzFwVlZURmpSazVZV2tkb1ZGSllRbnBXTWpGMlpESkdWMk5GYUZOaGEwcGhWbXRvUTJReGJITmFSV1JwWWtoQ1ZWUXhhSGRoTWtwWVZHNXNZVlpYVGpSWmVrRTBaVlpPZEdGSGNFNWlSbFkxVmtkMFQwNUdWbGRVYTFwUFUwZDRXVmx0TVRSU1JsSnlXa1YwV0ZJeFdrcFdiVEYzWWtkR2NsTnVaRmhXYkZwMlZsUkJlRk5HVW5KV2JXeE9UVmhDVDFaR1VrdFZiVlp6WTBWc2FHVnJXazlVVlZKR1RWWlNjMkZIUm1oaVZYQlpWa2R3UzFaV1dYcFJhMDVoVWtWR05GVnJWVFZYVjA1SVpFZHNWMDFFVmpOV2JGWnJaREExU0ZKdVVsTmlSM2hWV1d4b1EyTkdWbkZTYkdScFlrZDBOVmxxVG10aFJscFZVbXhXVmsxWGFHaFdWbVJIWkZad1JWTnNjR3hoZWxadlYxY3hORkV5U25OUmJGWk9Vako0VGxwWGNGSk9SbEpGVkdzNVRtSklRVEpVYTFGM1lWVjROazVFYUUxTk1EUjVWMjV2TUZCVFNYWlFhbmQyWXpOYWJsQm5QVDBpTHo0OEwzTjJaejQ9Ii8+PC9zdmc+"/></svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An inline data reference whose Base64 payload has one of its characters written
|
|
3
|
+
as a percent-encoded escape. The payload is decoded before it is read as Base64,
|
|
4
|
+
so the nested document is validated as the document it declares. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxzY3JpcHQ%2BYWxlcnQoMSk8L3NjcmlwdD48L3N2Zz4="/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16"><filter xlink:href="https://tracker.example.org/filters.svg#base"><feGaussianBlur stdDeviation="1"/></filter></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect width="16" height="16" filter="url(https://tracker.example.org/filters.svg#blur)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16"><font><font-face font-family="Text"><font-face-src><font-face-uri xlink:href="https://tracker.example.org/font.svg"/></font-face-src></font-face></font></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16"><linearGradient xlink:href="https://tracker.example.org/gradient.svg#base"><stop offset="0" stop-color="#000"/></linearGradient></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M 1 8 h 14" fill="none" stroke="#000" marker-start="url(https://tracker.example.org/markers.svg#arrow)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16"><text><animateMotion><mpath xlink:href="https://tracker.example.org/paths.svg#base"/></animateMotion></text></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16"><pattern xlink:href="https://tracker.example.org/pattern.svg#base"><rect width="16" height="16"/></pattern></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="//tracker.example.org/track.gif"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect width="16" height="16" stroke="url(https://tracker.example.org/paint.svg#gradient)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16"><text><textPath xlink:href="https://tracker.example.org/paths.svg#base">Text</textPath></text></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16"><text><tref xlink:href="https://tracker.example.org/text.svg#base">Text</tref></text></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- Exported logo --><report><entry key="1">This is an XML document which is not an SVG document.</entry></report>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation whose list of attribute names is separated by whitespace, assigning
|
|
3
|
+
references which are resolved against the document itself. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
5
|
+
<defs><pattern id="paint"><rect width="16" height="16"/></pattern></defs>
|
|
6
|
+
<image width="16" height="16"><animate attributeNames="href xlink:href" values="#paint;#paint" dur="1s"/></image>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation assigning a single value which contains a semicolon as part of the
|
|
3
|
+
parameters of the MIME type of a data reference, so the value is not split and the
|
|
4
|
+
nested document is validated. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<image width="16" height="16"><animate attributeName="href" to="data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Ccircle%20r%3D%221%22/%3E%3C/svg%3E" dur="1s" fill="freeze"/></image>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An animation whose target and whose list of values use a percent-encoded fragment,
|
|
3
|
+
which is resolved to the element of the document with the decoded identifier. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
5
|
+
<defs><pattern id="paint"><rect width="16" height="16"/></pattern></defs>
|
|
6
|
+
<image width="16" height="16"><animate xlink:href="#%70%61%69%6E%74" attributeName="href" values="#%70%61%69%6E%74;#%70%61%69%6E%74" dur="1s"/></image>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.logo { mask-image: image-set( url(#mask) 1x, url(local.svg) 2x); }</style><circle class="logo" cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<!-- A style sheet whose comment is not terminated, so it extends to the end of the style sheet. The multibyte characters make the byte position of the scanner differ from the length of the string. -->
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>éééééééééééééééééééé /*</style><rect width="16" height="16"/></svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A style sheet whose URL values contain the quote which does not delimit the
|
|
3
|
+
string, so the whole string is read as the reference: the namespace of the
|
|
4
|
+
nested document is written with single quotes inside a double quoted URL, and
|
|
5
|
+
with double quotes inside a single quoted one. Cutting the value at the other
|
|
6
|
+
quote would validate an incomplete document instead of the one which is
|
|
7
|
+
rendered. The last value is a single reference which is resolved against the
|
|
8
|
+
document, as the quotes inside it are part of the path and not delimiters. -->
|
|
9
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
10
|
+
<style>.logo { background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle%20r='8'/%3E%3C/svg%3E"); } .other { background: url('data:image/svg+xml,%3Csvg%20xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle%20r="8"/%3E%3C/svg%3E'); } .text { background: url("x 'https://example.org/only-part-of-the-path'"); }</style>
|
|
11
|
+
<circle class="logo" cx="8" cy="8" r="8" fill="#000"/>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Ccircle%20r%3D%221%22/%3E%3C/svg%3E#the-fragment-is-not-part-of-the-data"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PGltYWdlIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgaHJlZj0iZGF0YTppbWFnZS9zdmcreG1sO2Jhc2U2NCxQSE4yWnlCNGJXeHVjejBpYUhSMGNEb3ZMM2QzZHk1M015NXZjbWN2TWpBd01DOXpkbWNpSUhacFpYZENiM2c5SWpBZ01DQXhOaUF4TmlJK1BHbHRZV2RsSUhkcFpIUm9QU0l4TmlJZ2FHVnBaMmgwUFNJeE5pSWdhSEpsWmowaVpHRjBZVHBwYldGblpTOXpkbWNyZUcxc08ySm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1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgcj0iMSIvPjwvc3ZnPg=="/><image width="16" height="16" href="data:image/svg+xml;BASE64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgcj0iMSIvPjwvc3ZnPg=="/><image width="16" height="16" href="data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Ccircle%20r%3D%221%22/%3E%3C/svg%3E"/></svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- An inline data reference whose Base64 payload has its padding written as
|
|
3
|
+
percent-encoded characters. The browsers decode the percent-encoded characters
|
|
4
|
+
before reading the payload as Base64, so the payload is decoded as the document
|
|
5
|
+
it declares and is validated as a nested document. -->
|
|
6
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><image width="16" height="16" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgcj0iMSIvPjwvc3ZnPg%3D%3D"/></svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A link to an inline document. Links are not fetched when the document is
|
|
3
|
+
rendered, so they are not restricted as the references which load resources.
|
|
4
|
+
The browsers of the readers do not open data documents as top-level documents,
|
|
5
|
+
and the documents they open have an opaque origin, so the contents of the link
|
|
6
|
+
cannot read the contents of the page which contains it. -->
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
8
|
+
<a href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cscript%3Ealert%281%29%3C/script%3E%3C/svg%3E"><text y="15">Example</text></a>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A link with a scheme which does not fetch a resource when the document is
|
|
3
|
+
rendered and is not opened as a document by the browsers of the readers, so it
|
|
4
|
+
is accepted as the other links. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<a href="mailto:example@example.org"><text y="15">Example</text></a>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<!-- A comment longer than the leading bytes read to detect the file signature, so that the document is detected from the comment itself and then checked by the XML parser. -->
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<?editor exported logo?>
|
|
2
|
+
<!-- A document which starts with a custom processing instruction, where the XML declaration is optional, so it is detected from the processing instruction prefix. -->
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8" fill="#000"/></svg>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A document whose reference elements are resolved against the document itself:
|
|
3
|
+
the elements which inherit from another one (the gradient, the pattern, the
|
|
4
|
+
filter and the font), the path of a "textPath" and an "mpath", the contents of
|
|
5
|
+
a "tref" and an "altGlyph", and the color profile declared with a relative
|
|
6
|
+
path. None of them fetches a resource. -->
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16">
|
|
8
|
+
<defs>
|
|
9
|
+
<linearGradient id="base-gradient"><stop offset="0" stop-color="#000"/></linearGradient>
|
|
10
|
+
<pattern id="base-pattern"><rect width="16" height="16"/></pattern>
|
|
11
|
+
<filter id="base-filter"><feGaussianBlur stdDeviation="1"/></filter>
|
|
12
|
+
<path id="base-path" d="M 0 0 l 16 0"/>
|
|
13
|
+
<font id="base-font"><font-face font-family="Base"/></font>
|
|
14
|
+
</defs>
|
|
15
|
+
<linearGradient xlink:href="#base-gradient"><stop offset="1" stop-color="#fff"/></linearGradient>
|
|
16
|
+
<radialGradient xlink:href="#base-gradient"><stop offset="1" stop-color="#fff"/></radialGradient>
|
|
17
|
+
<pattern xlink:href="#base-pattern"><rect width="8" height="8"/></pattern>
|
|
18
|
+
<filter xlink:href="#base-filter"><feOffset/></filter>
|
|
19
|
+
<text><textPath xlink:href="#base-path">Text</textPath></text>
|
|
20
|
+
<text><animateMotion><mpath xlink:href="#base-path"/></animateMotion></text>
|
|
21
|
+
<text><tref xlink:href="#base-font">Text</tref></text>
|
|
22
|
+
<text><altGlyph xlink:href="#base-font" unicode="A">A</altGlyph></text>
|
|
23
|
+
<font><font-face font-family="Other"><font-face-src><font-face-uri xlink:href="#base-font"/></font-face-src></font-face></font>
|
|
24
|
+
<color-profile src="profile.icc"/>
|
|
25
|
+
<image width="16" height="16"><animate attributeName="href" to="#base-pattern" dur="1s"/></image>
|
|
26
|
+
</svg>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<!-- A document with a base which is relative to the document itself, so the references under it are resolved against the document and not against another host. -->
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:base="images/" viewBox="0 0 16 16"><image href="logo.png" width="16" height="16"/></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!-- A document whose style sheet and presentation attributes reference resources
|
|
2
|
+
resolved against the document itself: the "image()" function with a relative
|
|
3
|
+
path, and the color profile declared as a name and as a fragment. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
5
|
+
<style>circle { fill: #000; background-image: image("logo.png"); color-profile: url(#profile); }</style>
|
|
6
|
+
<defs><iccProfile id="profile"/></defs>
|
|
7
|
+
<circle cx="8" cy="8" r="8" color-profile="sRGB"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- A reference starting at the root, which is accepted because it cannot resolve to
|
|
3
|
+
another host. It is still requested to the origin which serves the document when
|
|
4
|
+
it is rendered, with the credentials of the reader. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
6
|
+
<image href="/assets/logo.png" width="16" height="16"/>
|
|
7
|
+
</svg>
|