지도건너뛰기, 웹취약점 수정

This commit is contained in:
JSYOO 2021-12-02 11:24:30 +09:00
parent d77d67a394
commit 44f5b3a228
5 changed files with 37 additions and 10 deletions

View File

@ -122,9 +122,8 @@ public class AriaCrypto {
try {
ret = AriaUtil.ariaDecrypt(value);
} catch(Exception e) {
} catch(UnsupportedEncodingException | InvalidKeyException e) {
log.error("ERROR at AriaCrypto.decode : " + e.toString());
e.printStackTrace();
ret = null;
}

View File

@ -104,6 +104,11 @@ public class AriaUtil {
AriaEngine instance = new AriaEngine(256, privateKey);
c = AriaEngine.hexToByteArray(strHex);
if(c == null)
{
return null;
}
p = new byte[c.length];
instance.decrypt(c, p, p.length);
@ -181,6 +186,11 @@ public class AriaUtil {
AriaEngine instance = new AriaEngine(256, privateKey);
c = hexToByteArray(strHex);
if(c == null)
{
return null;
}
p = new byte[c.length];
instance.decrypt(c, p, p.length);
@ -188,7 +198,7 @@ public class AriaUtil {
buf.append(new String(p));
return buf.toString().trim();
} catch (Exception e) {
e.printStackTrace();
log.error("ERROR at AriaCrypto.hexToByteArray : " + e.toString());
return originalData;
}
}
@ -282,6 +292,11 @@ public class AriaUtil {
AriaEngine instance = new AriaEngine(256, privateKey);
c = hexToByteArray(strHex);
if(c == null)
{
return null;
}
p = new byte[c.length];
instance.decrypt(c, p, p.length);
@ -307,6 +322,11 @@ public class AriaUtil {
AriaEngine instance = new AriaEngine(256, privateKey);
c = hexToByteArray(strHex);
if(c == null)
{
return null;
}
p = new byte[c.length];
instance.decrypt(c, p, p.length);

View File

@ -104,11 +104,11 @@ public class DataApiRESTful implements DataApiInterface {
statusCode = responseEntity.getStatusCode();
resultXML = responseEntity.getBody();
} catch(HttpClientErrorException e) {
//e.printStackTrace();
log.error("request > HttpClientErrorException 발생 : " + e.toString());
resultXML = e.getResponseBodyAsString();
statusCode = e.getStatusCode();
} catch(HttpServerErrorException e) {
//e.printStackTrace();
log.error("request > HttpServerErrorException 발생 : " + e.toString());
resultXML = e.getResponseBodyAsString();
statusCode = e.getStatusCode();
}
@ -121,11 +121,11 @@ public class DataApiRESTful implements DataApiInterface {
statusCode = responseEntity.getStatusCode();
resultXML = responseEntity.getBody();
} catch(HttpClientErrorException e) {
e.printStackTrace();
log.error("request > HttpClientErrorException 발생 : " + e.toString());
resultXML = e.getResponseBodyAsString();
statusCode = e.getStatusCode();
} catch(HttpServerErrorException e) {
e.printStackTrace();
log.error("request > HttpServerErrorException 발생 : " + e.toString());
resultXML = e.getResponseBodyAsString();
statusCode = e.getStatusCode();
}
@ -159,8 +159,13 @@ public class DataApiRESTful implements DataApiInterface {
log.debug("RES resVO : resultCode = " + resVO.getResultCode());
log.debug("RES resVO : resultMessage = " + resVO.getResultMessage());
}catch(HttpClientErrorException e) {
log.error("request > HttpClientErrorException 발생 : " + e.toString());
return DataApiInterface.makeErrorRes("E_REQ_HTTPCLIENTERROREXCEPTION", e.toString());
}catch(HttpServerErrorException e) {
log.error("request > HttpServerErrorException 발생 : " + e.toString());
return DataApiInterface.makeErrorRes("E_REQ_HTTPSERVERERROREXCEPTION", e.toString());
} catch(Exception e) {
e.printStackTrace();
log.error("request > Exception 발생 : " + e.toString());
return DataApiInterface.makeErrorRes("E_REQ_EXCEPTION", e.toString());
}

View File

@ -103,7 +103,7 @@ public class EmailUtil{
public static String getPrintStackTrace(Exception e) {
StringWriter errors = new StringWriter();
e.printStackTrace(new PrintWriter(errors));
log.error("ERROR at EmailUtil.getPrintStackTrace : " + e.toString());
return errors.toString();

View File

@ -39,6 +39,9 @@ $( document ).ready(function() {
//-->
</script>
<!-- 찾아오시는길 섹션 -->
<div class="skip-nav" style="display:none;">
<a href="#addr">지도 건너뛰기</a>
</div>
<div class="location map">
<h2 class="blind">${pageTitle} 섹션영역</h2>
<div class="inner">
@ -114,7 +117,7 @@ $( document ).ready(function() {
</script>
<!-- 지도 : 종료 -->
</div>
<div class="addr">
<div id="addr" class="addr">
<p><img src="/images/icon/icon-location-01.png" alt=""></p>
<p>주소</p>
<p>(${zipCode }) ${address } ${addressDetail }</p>