когда мы добавили следующую строку в запрос на мыло -
"<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE aa[<!ELEMENT bb ANY><!ENTITY xxe SYSTEM "file:///C:/Users/user">]>"
мы получили исключение:
<!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> Request processing failed; nested exception is org.springframework.ws.soap.saaj.SaajSoapEnvelopeException: Could not access envelope: Unable to create envelope from given source: ; nested exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source: </p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><p><b>Exception</b></p><pre>
org.springframework.web.util.NestedServletException: обработка запроса не удалась;вложенное исключение: org.springframework.ws.soap.saaj.SaajSoapEnvelopeException: не удалось получить доступ к конверту: невозможно создать конверт из указанного источника:;Вложенное исключение: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: невозможно создать конверт из указанного источника: org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:948) org.springframelet.we..FrameworkServlet.doPost (FrameworkServlet.java:838) javax.servlet.http.HttpServlet.service (HttpServlet.java:660) org.springframework.web.servlet..HttpServlet.service (HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter (WsFilter.java:53) org.apache.catalina.filters.HttpHeaderSecurityFilter...........
Можем ли мы настроить это исключение?или мы можем отправить общие сообщения об ошибках для этого типа исключения?