
CDNJS Issue #1
방금 흥미로운 것을 발견해서 몇자 남겨 본다.
필자가 관리를 위임받은 모 사이트가 아마존의 클라우드 프론트 CDN을 사용하고 있는데, 첫 화면의 슬라이드가 갑자가 동작하지 않았다. 코드를 변경한바 없는데, 갑자기 제대로 재생되지 않아 일단 첫페이지의 코드를 분석해 봤다.
에러가 발생하는 자바스크립트 파일이 jquery.fitvids.js 파일이었는데, 내용을 들여다 보니 실제 서버에 저장된 코드와 달랐다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
p://proxysites.im">proxy sites</a> <a href="http://www.proxyguru.com">Free Proxy List</a> <a href="http://www.zilzilproxy.com">ZilZil Proxy List</a> <a href="http://www.serveripproxy.com/">Server Ip Proxy</a> <a href="http://www.proxysubmit.com/" title="Submit Proxies" >Proxy Submit</a> <a href="http://www.proxysites.be/">Proxy Sites</a> <a href="http://www.isurfproxy.net">Free Web Proxies</a> <a href="http://www.findproxysites.com">Proxy Sites</a> <a href="http://www.proxyserversfree.org/">Free Proxy Servers</a> <a href="http://www.ipproxys.com/">Ip Proxys</a> <a href="http://www.tunnelhub.com">Proxy List Site</a> <a href="http://proxyforward.com">Proxy List</a> <a href="http://www.proxytracker.com/">Proxy List</a> <a href="http://www.proxiesforproxies.org/">Proxies For Proxies</a> <a href="http://proxiesusa.com">Proxies</a> <a href="http://freeproxy4all.com">Proxy Sites</a> <a href="http://proxyhyper.com">Proxy Sites</a> <a href="http://proxyriver.com">Proxy List</a> <a href="http://proxygreat.com">Proxy List</a> <a href="http://www.surfproxies.com/">Surf Proxies</a> <a href="http://www.web-proxy-list.com">Web Proxy List</a> <a href="http://www.freeproxies.eu/">Free Proxy List</a> <a href="http://www.massproxylist.com">MASS Proxies</a> <a title="@Proxy Sites" href="http://atproxysites.com">Proxy Sites</a> <a href="http://www.proxysitelist.org" title="Proxy Site List">Proxy Site List</a> <a href="http://www.greatproxies.com" title="Great Proxies">Great Proxies</a> <a href="http://www.myproxies.org" title="My Proxies">My Proxies</a> <a href="http://www.freeproxy.im/">Free Proxy</a> <a href="http://www.proxylisting.org">Proxy Listing</a> <a href="http://www.proxies.im">Proxies</a> <a href="http://www.proxieslist.org">Free Proxies List</a> <a href="http://www.proxynations.com">Free Proxy Directory</a> <a href="http://www.proxyserver.ws">Proxy Server</a> <a href="http://www.unblocksites.org/">Unblock Sites</a> <a href="http://www.proxy-topsite.com" title="Proxy Topsite">Proxy Topsite</a> <a href="http://proxydex.com/">Proxy Sites</a> <a href="http://air-proxy.org" rel="dofollow">Airproxy</a> <a href="http://airproxy.co" rel="dofollow">AirProxy</a> <a href="http://proxy247.net" rel="dofollow">Proxy Sites</a> <a href="http://www.allproxies.biz/">Proxy Sites</a> <a href="http://freeipaddress.net">Free IP Address</a> <a href="http://proxytoplist.info">Proxy List</a> <a href="http://recentproxysites.com">Proxy Sites</a> <a href='http://www.GetProxies.org/'>New Proxies</a> <a href="http://www.bypassu.com/">Bypass</a> <a href="http://www.internetproxies.net/">Proxy list</a> <a href="http://www.internetproxy.us/">Proxy list</a> <a href="http://www.proxville.com">Free Proxy Sites</a> <a href="http://blockk.info/">Proxy Sites</a> <a href="http://www.proxy2011.net/">Proxy List 2011</a> <a href="http://www.proxyserver.im/">Proxy Server</a> <a href="http://www.proxysite.us/">Proxy Site</a> <a href="http://www.proxywebsites.ws">Proxy Websites</a> <a href="http://www.topproxies.org" title="Top Proxies">Top Proxies</a> <a href="http://www.moreproxies.com">More Proxies</a> <a href="http://www.listproxysites.com">Proxy Sites</a> <a href="http://www.schoolproxieslist.info">SchoolProxiesList</a> <a href="http://www.proxylister.org/">Proxy Sites</a> <a href="http://www.proxyreporter.com" title="ProxyReporter.com Get the latest proxies directly to your email">Web Proxy</a> <a href="http://www.proxymeup.com">Web Proxy List</a> <a href="http://www.topproxylist.net">Top Proxies</a> <a href="http://unrestrictedsurf.com/">UnrestrictedSurf.com - Free Proxy Listings</a> <a href='http://proxylist.9ilog.com'>9iLog Proxies</a> <a href="http://www.azproxies.com/" title="A-Z Proxies">A-Z Proxies</a> <a href="http://www.my-proxy.com/" title="Multi-IP Web Proxy" target="_blank">Web Proxy</a> <a href="http://www.xproxylist.com">Working Proxies</a> <div style="text-align:center;"> <br><br> <iframe width='468' height='60' frameborder='0' src='http://www.proxynoid.com/ads/468.php?pid=983' marginwidth='0' marginheight='0' vspace='0' hspace='0' allowtransparency='true' scrolling='no' name="noidads" id="noidads"></iframe> </div> </p></div> </div> </div> </body> </html>HTTP/1.1 304 Not Modified Date: Mon, 25 Feb 2013 13:22:33 GMT Connection: keep-alive Last-Modified: Wed, 13 Feb 2013 14:39:25 GMT Vary: Accept-Encoding Age: 19018 X-Cache: cached CF-Cache-Status: HIT X-Accel-Buffering: yes Expires: Mon, 25 Feb 2013 17:22:33 GMT Cache-Control: public, max-age=14400 |
위 내용이 오늘 CDN 을 통해서 전송된 jquery.fitvids.js 파일의 내용이다. 당연히 문제가 있는 것이다.
일단 메인/세컨 CDN 에서 해당 파일 Purge 시키고 확인해 보았으나 결과는 달라지지 않았다.
이리 뒤지고, 저리 뒤지다 보니 클라우드플레어의 앱중 CDNJS 가 말썽의 원인임을 확인, 곧바로 Turn off 시키고 다시 확인해 보니 소스 서버의 스크립트가 정상적으로 전송되었다.
북미쪽으로 전송되는 스크립트는 정상적인것으로 보아, 아시아쪽에 있는 CDNJS 서버에 뭔가 문제가 있는것으로 보인다. (전송된 코드 내용으로 볼때, 99.99% 해킹 당하지 않았을까… 추측해 본다.)
혹시 클라우드플레어 사용하고 있다면, 지금 즉시 CDNJS 앱을 Turn off 시킬것을 권장한다.