Prevent exposure of sensitive data against PCI standards - response.getWriter().write(xml.toString())

前端 未结 2 1270
夕颜
夕颜 2021-01-27 06:49

I am fixing code against the code audit report. It says \"PREVENT EXPOSURE OF SENSITIVE DATA\" against the line having the syntax response.getWriter().write(xml.toString()

2条回答
  •  死守一世寂寞
    2021-01-27 07:47

    The content.toString() needs to be properly validated. use ESAPI to validate it strictly. writing directly to response is really vulnerable and if if the data is output from a method having request as input then its twice vulnerable. major security issue.

提交回复
热议问题