DOM XSS in microweber ver 1.2.15 in microweber/microweber
Reported on
Apr 29th 2022
Description
Hi there, on your latest version docker images 3463db62a01f, vulnerable to DOM XSS.
Proof of Concept
http://localhost/admin/order?filteringResults=true&id=1&isPaid=1&keyword=1&maxDate=01/01/1967&maxPrice=1&minDate=01/01/1967&minPrice=1&orderStatus=new&productId=the&productKeyword=the9958%22%0a%09%09%09%09});%0a%09%09%09});%0a%09%09alert(origin);%0a%09%09%09$(document).ready(function%20()%20{%0a%09%09%09%09var%20searchOrdersByProduct%20=%20new%20mw.autoComplete({%0a//
Impact
inject arbitrary js code, deface website, steal cookie...
Occurrences
order_filtering.blade.php L157
DOM code
$(document).ready(function () {
var searchOrdersByProduct = new mw.autoComplete({
element: "#js-orders-search-by-products",
placeholder: "<?php if ($productKeyword) { echo $productKeyword; } else { _e("Search by products..."); }?>",
autoComplete:true,
ajaxConfig: {
method: 'get',
url: mw.settings.api_url + 'get_content_admin?get_extra_data=1&content_type=product&keyword=${val}'
},
map: {
value: 'id',
title: 'title',
image: 'picture'
}
});
$(searchOrdersByProduct).on("change", function (e, val) {
$(".js-orders-search-product").val(val[0].id).trigger('change')
$(".js-orders-search-product-keyword").val(val[0].title).trigger('change')
});
});
@bobimicroweber - I can see you hit a bit of an error here, would you like me to update the CVSS for you?
The UI of the huntr is changed and i can't see where is the severity... Can you turn back old design of the huntr? The severity of this issue is low. Yes you can change it for me.
@bobimicroweber - if possible, I'd love for you to share your feedback on our public discussion here:
https://github.com/418sec/huntr/discussions/2214
It helps us centralise your thoughts and feedback, and address them ASAP.
I will address the severity for you now 👍
@maintainer, @admin, could you please tell me why this bug is rated low Severity? seem not fair. other report on your project has the same attack vector, same impact and they have been rated high? for example: https://huntr.dev/bounties/16b0547b-1bb3-493c-8a00-5b6a11fca1c5/
here is my another report which has been rated low? https://huntr.dev/bounties/730eddfc-fe19-471d-acbb-c6ef8f079950/
hi @admin can you change the severity to "low" as it requires admin access
hi, the bug is low severity as you need to be logged in as admin in order to reproduce it
the impact of this bug is steal admin cookie. when admin login and attacker trigger admin to click this link, the admin cookie will be leak to the hacker, and the severity is base on the impact. and in this report https://huntr.dev/bounties/16b0547b-1bb3-493c-8a00-5b6a11fca1c5/ have exactly the same attack vector, you rated is high?
Hi, seems @bobimicroweber has tagged it as high severity by mistake
All bugs that require admin access should not be high severity
Seem not fair when you rated other report with same attack vector, same impact with
high severity, and my report is low?
https://huntr.dev/bounties/16b0547b-1bb3-493c-8a00-5b6a11fca1c5/
https://huntr.dev/bounties/4999a0f4-6efb-4681-b4ba-b36babc366f9/
https://huntr.dev/bounties/d184ce19-9608-42f1-bc3d-06ece2d9a993/
https://huntr.dev/bounties/16b0547b-1bb3-493c-8a00-5b6a11fca1c5/
https://huntr.dev/bounties/085aafdd-ba50-44c7-9650-fa573da29bcd/
...
hi, all those bugs are tagged as high by mistake, anyway keep this as high if you wish, just in the future admin bugs will be tagged as meduim/low
i don't need the bounty, but your explaination when you mark my report as low severity is not fair. here is the CVSS i caculate for you: AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L at least it have the medium severity
@peter-mw - can you let me know the CVSS vector for the low severity that you would like to set to this report?
@minhnb11 - please respect the maintainer's decision for this report (ultimately it is final). Any spam or harassment will not be accepted - if you do have any issues, please address them respectfully. If you believe there is something we can do better from a platform perspective, feel free to create an issue on our public roadmap here.
@admin @maintainer, i'm fully respect the maintainer, just not agree if this report mark severity as low without explaination.