忽略加密参数xss,增加微信调试信息
This commit is contained in:
parent
3c6d6e67bd
commit
155d98e8b9
@ -29,7 +29,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper {
|
public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper {
|
||||||
|
|
||||||
private static final String[] ignoreField = {"logo", "url", "photo", "intro", "content", "name"};
|
private static final String[] ignoreField = {"logo", "url", "photo", "intro", "content", "name", "encrypted"};
|
||||||
|
|
||||||
public XssHttpServletRequestWrapper(HttpServletRequest request) {
|
public XssHttpServletRequestWrapper(HttpServletRequest request) {
|
||||||
super(request);
|
super(request);
|
||||||
|
@ -309,8 +309,10 @@ public class ConnectServiceImpl extends ServiceImpl<ConnectMapper, Connect> impl
|
|||||||
* @return 用户信息
|
* @return 用户信息
|
||||||
*/
|
*/
|
||||||
public JSONObject getUserInfo(String encryptedData, String sessionKey, String iv) {
|
public JSONObject getUserInfo(String encryptedData, String sessionKey, String iv) {
|
||||||
|
|
||||||
|
log.info("encryptedData:{},sessionKey:{},iv:{}", encryptedData, sessionKey, iv);
|
||||||
//被加密的数据
|
//被加密的数据
|
||||||
byte[] dataByte = Base64.getDecoder().decode(encryptedData.replace("\r\n", ""));
|
byte[] dataByte = Base64.getDecoder().decode(encryptedData);
|
||||||
//加密秘钥
|
//加密秘钥
|
||||||
byte[] keyByte = Base64.getDecoder().decode(sessionKey);
|
byte[] keyByte = Base64.getDecoder().decode(sessionKey);
|
||||||
//偏移量
|
//偏移量
|
||||||
|
Loading…
x
Reference in New Issue
Block a user