qunarcorp / qmq

QMQ是去哪儿网内部广泛使用的消息中间件,自2012年诞生以来在去哪儿网所有业务场景中广泛的应用,包括跟交易息息相关的订单场景; 也包括报价搜索等高吞吐量场景。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross-Site Scripting: Reflected

QiAnXinCodeSafe opened this issue · comments

protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws IOException {
final String actionName = req.getParameter("action");
if (Strings.isNullOrEmpty(actionName)) {
resp.setStatus(HttpServletResponse.SC_OK);
resp.getWriter().println("need provide action param");
return;
}
final MetaManagementAction action = actions.getAction(actionName);
if (action == null) {
resp.setStatus(HttpServletResponse.SC_OK);
resp.getWriter().println("不支持的 action: " + actionName);
return;
}

Sending unvalidated data to a web browser can result in the browser executing malicious code.

In line 40,‘actionName’ was Contaminated,It could affect line 50