기본 콘텐츠로 건너뛰기

Insecure Client Storage

Insecure Client Storage




[Description]


물품 주문 개수를 입력 할 경우 , 쿠폰을 적용하기 전 금액과 , 청부해야 할 총 금액이 출력됩니다. 우리는 청부해야 할 금액을 원하는 금액으로 주문이 가능한지에 대해 취약점을 진단합니다.




[그림1]


[그림1] 모든 주문 입력 개수를 입력한 그림.

모든 주문 입력 개수를 입력하면 쿠폰을 적용하기전 금액과 , 지불해야 할 총 금액이 출력됩니다. 우리는 지불해야 할 총 금액을 조작하여 구매가 가능한지 취약점 진단을 시도합니다.



[그림2]


[그림2] 지불해야 할 가격 수정 전 그림. 

총 지불해야 할 금액은 GRANDTOT 변수를 통해 값을 전달합니다.

따라서 이 부분의 금액을 0으로 조작하여 클라이언트측에 전송하여 취약점을 진단합니다.



[그림3] 지불해야 할 가격을 0으로 수정 후 그림.


지불해야 할 가격을 0으로 수정 후 서버에 전송합니다.



[그림4]    



[그림4] 와 같이 $1,997,96 가격에서 $0 가격으로 조작이 성공합니다. 





[Impact]

공격자는 물품 금액을 원하는 값으로 수정하여 구매가 가능합니다.

댓글

이 블로그의 인기 게시물

HackerOne Vulnerability Analysis 1

이 문서는  HackerOne 에서  제출된 많은 보고서들을 토대로 핵심 Payload만 요약하여 직접 작성하였습니다. Link :  https://hackerone.com/ Vulnerabilities list 1. CRLF Injection 2. Open Redirection  3. Cross-Site-Scripting 4. SQL-Injection 5. Path Traversal  CRLF Injection PoC http://www.myshopify.com/xxcrlftest%0aSet-Cookie:test=test3;domain=.myshopify.com; https://www.blackfan.myshopify.com/xxx%0aSet-Cookie:test=test2;domain=.myshopify.com; HTTP Response: HTTP/1.1 302 Moved Temporarily ... Location: http://myshopify.com/xxcrlftest Set-Cookie:test=test;domain=.myshopify.com; PoC: https://engineeringblog.yelp.com/xxcrlftest%0d%0aSet-Cookie:%20test=test;domain=.yelp.com HTTP Response: HTTP/1.1 301 Moved Permanently ... Location: http://engineeringblog.yelp.com/xxcrlftest Set-Cookie: test=test;domain=.yelp.com PoC (Chrome, Internet Explorer) http://gratipay.com/%0dSet-Cookie:csrf_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; HTTP Resp...

Juice Shop XSS [ Dom based XSS ]

Juice Shop XSS [ Dom based XSS ] Search 입력란에 악성 스크립트를 넣어 XSS 취약점을 진단합니다. Payload :  <iframe src="javascript:alert(`xss`)">   다음과 같이 이는 < , > 는 &lt; , &gt; 로 특수문자를 필터링하지 않기에 XSS 에 취약합니다.

Vulnerability analysis tool

Vulnerability analysis tool List of tools you use 1. Burp-Suite- Link 2. Sqlmap- Link 3. Nikto- Link 4. DirBuster - Link 5. lazyrecon- Link 6. Nmap- Link This site is a reference for finding vulnerabilities more efficiently. 1.  google hacking- Link 2. exploit-db- Link 3. Shodan- Link 4. SSL Labs Server Test- Link 5. CVE-mitre - Link