• Y
  • List All
  • Feedback
    • This Project
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
chominsoo4245 / mjon_git star
Forked from hylee / mjon_git
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB
  • Files
  • Commit
  • Branches
mjon_gitsrcmainjavaitncomcmmEgovWebUtil.java
Download as .zip file
File name
Commit message
Commit date
DATABASE
mjon_git
2023-06-12
src/main
Merge branch 'hylee' into advc
2024-07-05
.codetogether.ignore
mjon_git
2023-06-12
.gitignore
gitignore 적용
2023-06-12
pom.xml
플러그인 추가 원복
2024-02-16
File name
Commit message
Commit date
java
[사용자] 결제관리 > 요금 결제내역 ==> 조회에 대한 기건설정 필수값으로 변경
2024-07-05
resources
2024-06-12 관리자 로그인 검색 쿼리 수정
2024-06-12
webapp
Merge branch 'hylee' into advc
2024-07-05
File name
Commit message
Commit date
egovframework
mjon_git
2023-06-12
itn
[사용자] 결제관리 > 요금 결제내역 ==> 조회에 대한 기건설정 필수값으로 변경
2024-07-05
File name
Commit message
Commit date
com
[사용자] 결제관리 > 요금 결제내역 ==> 조회에 대한 기건설정 필수값으로 변경
2024-07-05
let
[사용자] 결제관리 > 요금 결제내역 ==> 조회에 대한 기건설정 필수값으로 변경
2024-07-05
web
메인메뉴 및 사이트맵에서 선거 후보자 정보가 없는 경우 선거문자 메뉴가 안보이도록 처리
2024-02-08
File name
Commit message
Commit date
api/web
mjon_git
2023-06-12
cmm
[사용자] 결제관리 > 요금 결제내역 ==> 조회에 대한 기건설정 필수값으로 변경
2024-07-05
sym/log/ulg
mjon_git
2023-06-12
usr/search/web
mjon_git
2023-06-12
uss
IP 차단 관련 오류 확인전
2024-04-09
utl
mjon_git
2023-06-12
File name
Commit message
Commit date
aspect
mjon_git
2023-06-12
captcha
mjon_git
2023-06-12
filter
mjon_git
2023-06-12
interceptor
알림톡 발송내용 필터검사 하지 않도록 추가
2024-06-10
service
mjon_git
2023-06-12
taglibs
mjon_git
2023-06-12
util
[사용자] 결제관리 > 요금 결제내역 ==> 조회에 대한 기건설정 필수값으로 변경
2024-07-05
web
첨부파일 다운로드시 원본 파일명에 "," 가 포함된 경우 "_"로 변환하여 다운로드 되도록 변경 - 관리자 파일 다운로드시 오류가 발생하여 변경 처리 함.
2023-10-11
AltibaseClobStringTypeHandler.java
mjon_git
2023-06-12
ComDefaultCodeVO.java
mjon_git
2023-06-12
ComDefaultVO.java
mjon_git
2023-06-12
EgovComCrossSiteHndlr.java
mjon_git
2023-06-12
EgovComExcepHndlr.java
mjon_git
2023-06-12
EgovComOthersExcepHndlr.java
mjon_git
2023-06-12
EgovComTraceHandler.java
mjon_git
2023-06-12
EgovMessageSource.java
mjon_git
2023-06-12
EgovMultiPartEmail.java
mjon_git
2023-06-12
EgovWebUtil.java
mjon_git
2023-06-12
ImagePaginationRenderer.java
mjon_git
2023-06-12
ImagePaginationRendererWeb.java
mjon_git
2023-06-12
JsonResult.java
mjon_git
2023-06-12
LoginVO.java
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
ReadVO.java
mjon_git
2023-06-12
SessionVO.java
mjon_git
2023-06-12
UserVO.java
mjon_git
2023-06-12
hylee 2023-06-12 9347f1d mjon_git UNIX
Raw Open in browser Change history
package itn.com.cmm; import java.util.regex.Pattern; /** * 교차접속 스크립트 공격 취약성 방지(파라미터 문자열 교체) * * <pre> * << 개정이력(Modification Information) >> * * 수정일 수정자 수정내용 * ------- -------- --------------------------- * 2011.10.10 한성곤 최초 생성 * * </pre> */ public class EgovWebUtil { public static String clearXSSMinimum(String value) { if (value == null || value.trim().equals("")) { return ""; } String returnValue = value; returnValue = returnValue.replaceAll("&", "&amp;"); returnValue = returnValue.replaceAll("<", "&lt;"); returnValue = returnValue.replaceAll(">", "&gt;"); returnValue = returnValue.replaceAll("\"", "&#34;"); returnValue = returnValue.replaceAll("\'", "&#39;"); returnValue = returnValue.replaceAll("[.]", "&#46;"); returnValue = returnValue.replaceAll("%2E", "&#46;"); returnValue = returnValue.replaceAll("%2F", "&#47;"); return returnValue; } public static String clearXSSMaximum(String value) { String returnValue = value; returnValue = clearXSSMinimum(returnValue); returnValue = returnValue.replaceAll("%00", null); returnValue = returnValue.replaceAll("%", "&#37;"); // \\. => . returnValue = returnValue.replaceAll("\\.\\./", ""); // ../ returnValue = returnValue.replaceAll("\\.\\.\\\\", ""); // ..\ returnValue = returnValue.replaceAll("\\./", ""); // ./ returnValue = returnValue.replaceAll("%2F", ""); return returnValue; } public static String filePathBlackList(String value) { String returnValue = value; if (returnValue == null || returnValue.trim().equals("")) { return ""; } returnValue = returnValue.replaceAll("\\.\\./", ""); // ../ returnValue = returnValue.replaceAll("\\.\\.\\\\", ""); // ..\ return returnValue; } /** * 행안부 보안취약점 점검 조치 방안. * * @param value * @return */ public static String filePathReplaceAll(String value) { String returnValue = value; if (returnValue == null || returnValue.trim().equals("")) { return ""; } returnValue = returnValue.replaceAll("/", ""); returnValue = returnValue.replaceAll("\\", ""); returnValue = returnValue.replaceAll("\\.\\.", ""); // .. returnValue = returnValue.replaceAll("&", ""); return returnValue; } public static String filePathWhiteList(String value) { return value; } public static boolean isIPAddress(String str) { Pattern ipPattern = Pattern.compile("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"); return ipPattern.matcher(str).matches(); } public static String removeCRLF(String parameter) { return parameter.replaceAll("\r", "").replaceAll("\n", ""); } public static String removeSQLInjectionRisk(String parameter) { return parameter.replaceAll("\\p{Space}", "").replaceAll("\\*", "").replaceAll("%", "").replaceAll(";", "").replaceAll("-", "").replaceAll("\\+", "").replaceAll(",", ""); } public static String removeOSCmdRisk(String parameter) { return parameter.replaceAll("\\p{Space}", "").replaceAll("\\*", "").replaceAll("|", "").replaceAll(";", ""); } }

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up