Fix Multiple Stored XSS in Administration allowing execution of arbitrary JavaScript code#1260
Fix Multiple Stored XSS in Administration allowing execution of arbitrary JavaScript code#1260glensc merged 8 commits intoeventum:masterfrom noobpk:fix-stored-xss
Conversation
Fix bug stored xss - Data when render on FE allows execution of arbitrary javascript code Disclosure : https://huntr.dev/bounties/cc5c6cdd-8030-4eb1-af75-947780ee12e0/
|
Hi, I have a few questions:
|
Well, You can process special values in user input on the BE side before storing it, or use the Like in laravel framework I am using just use I tried with natural characters and it seems to work fine. |
|
smarty docs is down now. Can't check what |
|
Smarty does not have an automatic escape. So have to place everywhere The alternative of escaping in code before feeding to template, is very horrible idea, as must escape at for the context where the data is output, and using proper method. For example in html link context, you do I had some crazy ideas to replace Smarty with Twig, even found some form of converters, but never finished it. found the branch from Oct 2016: |
|
Google says different: Smarty do it by default by setting $default_modifiers field for Smarty object e.g. I got the point. Yet |
|
In any case, we can't do |
|
Ook. |
|
@glensc I was found a new point that can trigger xss in eventum/templates/select_project.tpl.html Line 43 in 062389e How I update commit to this PR. |
Add another commit. or did you run to some errors? you may need |
Fix bug stored xss - Data when render on FE allows execution of arbitrary javascript code Disclosure : https://huntr.dev/bounties/cc5c6cdd-8030-4eb1-af75-947780ee12e0/
|
The flow of pull request should be:
I can do 4&5 myself, if it's too difficult for typical contributor. |
^^ . When my PR is ready but i don't find any button to merge it |
|
@noobpk you can't do "5", you're not maintainer here. also:
|
Fix bug stored xss - Data when render on FE allows execution of arbitrary javascript code Disclosure : https://huntr.dev/bounties/cc5c6cdd-8030-4eb1-af75-947780ee12e0/
|
@glensc Did you receive an email for my report? :D |
|
@noobpk you mean email that you pushed one more commit? |
|
@noobpk you haven't responded to all review notes: |
Ah no. It mean email from huntr for this bug. https://huntr.dev/bounties/cc5c6cdd-8030-4eb1-af75-947780ee12e0/ |
Co-authored-by: Elan Ruusamäe <glen@pld-linux.org>
Ah sorry, I'm a little confused in the manipulations with PR. ^^ |
seems you only applied the suggestion, didn't change the title. |
|
@noobpk also, when you're done with your changes, remove Draft! |
It mean I make PR is ready for review , right? |
…to fix-stored-xss
Thanks. I have quickly looked at Twig and Smarty. I feel like they are on par. They both get commits, has PHP8 support. |
|
I checked with the docs: "html" modofier is the default. The code changes might be optimized from |
|
@noobpk don't add merge commits to the merge request, rebase instead! also when you're done with changes, remove draft state. |
no need for this, |
Fix bug stored xss - Data when render on FE allows execution of arbitrary javascript code Disclosure : https://huntr.dev/bounties/cc5c6cdd-8030-4eb1-af75-947780ee12e0/
Oke, I've searched all possible places to trigger xss |
|
since you ignored multiple requests to rebase, I'm going to rebase myself. in fact, since the commits have the same commit message, I'm going to squash merge to a single commit. |
|
@noobpk do you have more bugs in your queue or I'll make a release now? |
Well, Currently for your repo it's not. |
Thank you for being patient with me. ^^!! . I'm so noob with Github |
|
There's shame in that you can't do things, just discarding because you don't understand is not that okay. As for the other end of the reading the discussion on the pull request, I do not know, if you are working on a thing, or you discarded it because didn't understand. |
Thanks for your feedback. I will try harder. ^^!! |
|
@glensc Hi, you are valided the report but not valided the occurences and my fix 😅😅. |
|
@noobpk I don't understand what do you mean. |
Ah, I see you have validated this report https://huntr.dev/bounties/cc5c6cdd-8030-4eb1-af75-947780ee12e0 |
|
making eventum release takes time, had to wait for Travis to finish the CI job. |
|
Patch confirmed! 🎉 |
|
again, don't understand, I marked as fixed and pointed to a commit. That was fine for previous reports
|
Did you see the occurrences section of my report? It here And if you confirm these occurrences are valid then I get a little extra bounty from the hunter. If you can't find it I'll ask admin for help. ^^!! |
|
I see the occurrences, but they are just links. I think all of them got validated when I picked validate from right side. and I any case, if status is fixed, then prior were also validated. |
I think so too but currently huntr is making it separate and sometimes the maintainer doesn't know. :(( Anyway, thanks for validated it ^^!! |
|
I now see them all validated after fix-released event. perhaps it's automatic, perhaps it's automata with a human. |


The data generated from Administration when rendering in FE lacks
escape:htmlfrom which it can execute arbitrary javascript code.Fix bug stored xss - Data when render on FE allows execution of arbitrary javascript code
Disclosure: https://huntr.dev/bounties/cc5c6cdd-8030-4eb1-af75-947780ee12e0