Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in parsing UHTML #36

Open
singiamtel opened this issue Nov 9, 2024 · 0 comments
Open

Error in parsing UHTML #36

singiamtel opened this issue Nov 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@singiamtel
Copy link
Owner

We're missing some CSS tag on the HTML sanitizer whitelist, probably.

image

repro:

|c:|1731133715|*PartBot|/uhtml connectfour1731133715827,<center><center style="max-height: 400px; overflow-y: scroll;"><table style="border:none;background:#0080ff;border-radius:5%;"><tr><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#e60000 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td></tr><tr><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td></tr><tr><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#e60000 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td></tr><tr><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td></tr><tr><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#e60000 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#e60000 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#e60000 50%,#333333);border-radius:50%;margin:1.5px"></div></td></tr><tr><td><div style="height:15px;width:15px;background-image:radial-gradient(#111111 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#e60000 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#e60000 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#e60000 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#ffff00 50%,#333333);border-radius:50%;margin:1.5px"></div></td><td><div style="height:15px;width:15px;background-image:radial-gradient(#e60000 50%,#333333);border-radius:50%;margin:1.5px"></div></td></tr></table></center></center><div style="float:right;color:#888;font-size:8pt">[PartBot]</div><div style="clear:both"></div>

Reported by @PartMan7 (thank you!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

1 participant