I've found an input that achieves code injection on this instance. Sent it to this instance's admins, will hold on additional details to the public until a fix is widely deployed.
General
Feel like you have something to post, but it's not really relevant to any of the current communities, and you don't feel like it's worth making an entirely new community just to post it? This is the place for that.
NSFW content is allowed in this community so long as you mark it as per site rules.
We're currently working on implementing a patch someone deployed to burggit. Stay tuned!~
That's great news! I just made this post as an additional warning to other users who browse other instances, since the previous post only mentioned sidebar exploit.
It can only ever steal this pages cookies.
Imagine if any random page could read the cookies from your online banking...
Yeah that makes sense, as that'd be a huge vulnerability. I thought it's similar to your typical cookie stealer malware when you clicked on an infected exe.
injection attacks on websites means that someone managed to add some unintended part to the website, as if the webserver had sent a different page. So it does allow all things the website could do, no more - no less.
If I type *{display:none}, that is escaped. If this would get inserted into the website as "cleartext", it would be valid html that would hide the entire page, turning it blank. Ofc a comment should not be able to do that, so a > in text is changed to something like >
![alt text](https://link.to/an/image.png) is a syntax to insert an image into the comment, so it is parsed into an <img src="https://link.to/an/image.png" alt="alt text"> html element. In that insertion the contained text was not properly escaped in some cases, so you could have the image contain valid html which would continue on writing into the website. Basically for the alt text " other attribute="attribute val you would get <img src="https://link.to/an/image.png" alt="" other attribute="attribute val"> instead of <img src="https://link.to/an/image.png" alt="" other attribute="attribute val"> which it should have been. And one of the attributes you can add is javascript that is executed at certain times, so you can inject javascript into the page which can do pretty much everything at that point
Ahhh, that last part really helped me understand it. So they can add any additional attributes because the links are not escaped properly.
Javascript was a huge fucking mistake.