bbcode
bbcode copied to clipboard
XSS vulnerability in URL tags
I believe javascript:
URLs ought to be filtered. URL tags currently allows embedding malicious inline scripts:
$bbcode = new ChrisKonnertz\BBCode\BBCode();
echo $bbcode->render("[url=javascript:alert('hacked')]malicious link[/url]");
tbh i plan to make a pull to fix it
im a few months late on this but if anyone cares to do it just make it allow specific urls or disallow (like a whitelist or blacklist)