Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Custom project page colors/styles in ordinary scratch (plus more things)
- plum_the_fox
-
Scratcher
1000+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
i would be neat if it was possible to replace the background of the project with a photo, which sits inThis one makes the entire page flash red, kinda cool: https://scratch.mit.edu/projects/1299345735/
The SVG Code is this:<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100">
<!-- Indicator inside SVG -->
<rect x="0" y="0" width="200" height="100" fill="#111"/>
<text x="100" y="55" fill="#0f0" font-size="12" text-anchor="middle">
Logo / Comment Slide Test
</text>
<style>
img[alt="Scratch"],
.scratch-logo,
.logo {
transform: translateX(50px) scale(1.2) !important;
transition: transform 0.5s ease !important;
}
/* target comment input */
textarea,
.comment-input {
transform: scale(1.3) translateY(-10px) !important;
transition: transform 0.5s ease !important;
border: 2000px solid red !important;
}
</style>
</svg>
And this one flashes green right?<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100">
<!-- Indicator inside SVG -->
<rect x="0" y="0" width="200" height="100" fill="#111"/>
<text x="100" y="55" fill="#0f0" font-size="12" text-anchor="middle">
Logo / Comment Slide Test
</text>
<style>
img[alt="Scratch"],
.scratch-logo,
.logo {
transform: translateX(50px) scale(1.2) !important;
transition: transform 0.5s ease !important;
}
/* target comment input */
textarea,
.comment-input {
transform: scale(1.3) translateY(-10px) !important;
transition: transform 0.5s ease !important;
border: 2000px solid green !important;
}
</style>
</svg>
That svg code is super old so it might not work well
class="preview"
id="view"
- MineTurte
-
Scratcher
1000+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
i would be neat if it was possible to replace the background of the project with a photo, which sits inThis could easily be used to upload explicit photos by the way.underclass="preview"id="view"
- ChristianScratcher1
-
Scratcher
1000+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
Is that not already doable via uploading pictures in the costume editor which is much easier than having to go through all this CSS?i would be neat if it was possible to replace the background of the project with a photo, which sits inThis could easily be used to upload explicit photos by the way.underclass="preview"id="view"
- MineTurte
-
Scratcher
1000+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
It is but that would be another way.Is that not already doable via uploading pictures in the costume editor which is much easier than having to go through all this CSS?i would be neat if it was possible to replace the background of the project with a photo, which sits inThis could easily be used to upload explicit photos by the way.underclass="preview"id="view"
- plum_the_fox
-
Scratcher
1000+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
yes i know i realized that when i sent iti would be neat if it was possible to replace the background of the project with a photo, which sits inThis could easily be used to upload explicit photos by the way.underclass="preview"id="view"
- fortyonetest
-
Scratcher
23 posts
Custom project page colors/styles in ordinary scratch (plus more things)
well now you can hack peoples accounts using this: https://muffin.ink/blog/scratch-vulnerability-disclosure/
(which is very bad).
meaning that you could use this method to execute arbitrary code (also very bad)
so im assuming this will be patched soon
(which is very bad).
meaning that you could use this method to execute arbitrary code (also very bad)
so im assuming this will be patched soon
- Yoshiii999
-
Scratcher
100+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
well now you can hack peoples accounts using this: https://muffin.ink/blog/scratch-vulnerability-disclosure/
(which is very bad).
meaning that you could use this method to execute arbitrary code (also very bad)
so im assuming this will be patched soon
That's a different bug
- STebBerry
-
Scratcher
100+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
well now you can hack peoples accounts using this: https://muffin.ink/blog/scratch-vulnerability-disclosure/aw, that's sad. but at least nobody will get hacked
(which is very bad).
meaning that you could use this method to execute arbitrary code (also very bad)
so im assuming this will be patched soon

- fortyonegames
-
Scratcher
100+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
well now you can hack peoples accounts using this: https://muffin.ink/blog/scratch-vulnerability-disclosure/
(which is very bad).
meaning that you could use this method to execute arbitrary code (also very bad)
so im assuming this will be patched soon
That's a different bug
“To exploit it, an attacker needs to upload a malicious costume to Scratch”
which is similar to this (although you need to use direct API's)
"As of publishing, the latest version of Scratch Desktop is 3.31.1. All versions can execute arbitrary code when opening the costume editor in a malicious project. 3.29.1 and earlier can also execute arbitrary code when importing a malicious SVG."
this too
- Yoshiii999
-
Scratcher
100+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
"As of publishing, the latest version of Scratch Desktop is 3.31.1. All versions can execute arbitrary code when opening the costume editor in a malicious project. 3.29.1 and earlier can also execute arbitrary code when importing a malicious SVG."
That's still a different bug, that's arbitrary code execution of JavaScript, the bug on this forum only allows CSS to “run” from an SVG
- STebBerry
-
Scratcher
100+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
the scratch repository on github has a thing made to sanitize ALL SVG's. technically they are still in the same bug since it utilizes a glitch that get's past that sanitizer. if they fix the sanitizer, both bugs won't work anymore"As of publishing, the latest version of Scratch Desktop is 3.31.1. All versions can execute arbitrary code when opening the costume editor in a malicious project. 3.29.1 and earlier can also execute arbitrary code when importing a malicious SVG."
That's still a different bug, that's arbitrary code execution of JavaScript, the bug on this forum only allows CSS to “run” from an SVG
- STebBerry
-
Scratcher
100+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
unless it only sanitizes css. not fully surethe scratch repository on github has a thing made to sanitize ALL SVG's. technically they are still in the same bug since it utilizes a glitch that get's past that sanitizer. if they fix the sanitizer, both bugs won't work anymore"As of publishing, the latest version of Scratch Desktop is 3.31.1. All versions can execute arbitrary code when opening the costume editor in a malicious project. 3.29.1 and earlier can also execute arbitrary code when importing a malicious SVG."
That's still a different bug, that's arbitrary code execution of JavaScript, the bug on this forum only allows CSS to “run” from an SVG
- whitnlan000
-
Scratcher
31 posts
Custom project page colors/styles in ordinary scratch (plus more things)
well now you can hack peoples accounts using this: https://muffin.ink/blog/scratch-vulnerability-disclosure/
(which is very bad).
meaning that you could use this method to execute arbitrary code (also very bad)
so im assuming this will be patched soon
Uh-oh. Scratch has ACE.
- nembence
-
Scratcher
500+ posts
Custom project page colors/styles in ordinary scratch (plus more things)
the scratch repository on github has a thing made to sanitize ALL SVG's. technically they are still in the same bug since it utilizes a glitch that get's past that sanitizer. if they fix the sanitizer, both bugs won't work anymoreWhen the sanitizer is used on an SVG, it removes all JavaScript, but it looks like Scratch forgot to use it in some cases
- haandatel
-
New Scratcher
16 posts
Custom project page colors/styles in ordinary scratch (plus more things)
let us all agree to never speak of this again
- RealApplePieStudios
-
Scratcher
17 posts
Custom project page colors/styles in ordinary scratch (plus more things)
let us all agree to never speak of this againSpeak of what? The thing were supposed to speak of in this chat, which is css?
- haandatel
-
New Scratcher
16 posts
Custom project page colors/styles in ordinary scratch (plus more things)
it literally just caused a scratchwide hacking inccedentlet us all agree to never speak of this againSpeak of what? The thing were supposed to speak of in this chat, which is css?
- RealApplePieStudios
-
Scratcher
17 posts
Custom project page colors/styles in ordinary scratch (plus more things)
yeah, but as long as it don't affect other peoples account, it should be fine (idk maybe it does I didn't read everything)it literally just caused a scratchwide hacking inccedentlet us all agree to never speak of this againSpeak of what? The thing were supposed to speak of in this chat, which is css?
- RealApplePieStudios
-
Scratcher
17 posts
Custom project page colors/styles in ordinary scratch (plus more things)
oh ok, nvm, I understand nowyeah, but as long as it don't affect other peoples account, it should be fine (idk maybe it does I didn't read everything)it literally just caused a scratchwide hacking inccedentlet us all agree to never speak of this againSpeak of what? The thing were supposed to speak of in this chat, which is css?
this also helped me https://scratch.mit.edu/projects/1315819559/
- -S0dium-
-
Scratcher
85 posts
Custom project page colors/styles in ordinary scratch (plus more things)
wait whatit literally just caused a scratchwide hacking inccedentlet us all agree to never speak of this againSpeak of what? The thing were supposed to speak of in this chat, which is css?
- Discussion Forums
- » Advanced Topics
-
» Custom project page colors/styles in ordinary scratch (plus more things)