{"id":136,"date":"2008-12-23T16:17:22","date_gmt":"2008-12-23T16:17:22","guid":{"rendered":""},"modified":"2011-04-25T08:39:02","modified_gmt":"2011-04-25T08:39:02","slug":"%e4%b8%8d%e8%a6%81%e5%b0%8f%e7%9c%8b%e6%b3%a8%e9%87%8a%e6%8e%89%e7%9a%84js","status":"publish","type":"post","link":"https:\/\/www.inbreak.net\/archives\/136.html","title":{"rendered":"\u4e0d\u8981\u5c0f\u770b\u6ce8\u91ca\u6389\u7684JS"},"content":{"rendered":"

by \u7a7a\u865a\u6d6a\u5b50\u5fc3 \u968f\u7b14\u3002<\/p>\n

HTTP Response Splitting \u653b\u51fb\u4e3b\u8981\u8bf4\u660e\u7684\u662f\u4e24\u4e2a\u95ee\u9898<\/p>\n

\u4e00\u4e2a\u662fheader\u63d2\u5165\u95ee\u9898\u3002<\/p>\n

\u53e6\u4e00\u4e2a\u662f\\r\\n\u95ee\u9898\u3002<\/strong><\/p>\n

\n\u6211\u4eec\u6765\u770b\u8fd9\u6837\u4e00\u6bb5\u4ee3\u7801\uff1a<\/p>\n

\n
Java\u4ee3\u7801<\/div>\n
    \n
  1. test  <\/span><\/span><\/li>\n
  2. <script>  <\/span><\/li>\n
  3.     \/\/alert(‘<%=request.getParameter("username")%>’);<\/span>  <\/span><\/span><\/li>\n
  4. <\/script>  <\/span><\/li>\n<\/ol>\n<\/div>\n

    \u5927\u5bb6\u90fd\u80fd\u770b\u5230\uff0c\u8fd9\u597d\u50cf\u6709\u4e2a\u6f0f\u6d1e\uff0c\u4f46\u662f\u5df2\u7ecf\u88ab\u8865\u4e0a\u4e86\uff0c\u6ce8\u91ca\u6389\u4e86\u3002<\/p>\n

    \u90a3\u65e2\u7136\u6ce8\u91ca\u6389\u4e86\uff0c\u5c31\u4e0d\u8be5\u6709\u95ee\u9898\u4e86\u4e48\uff1f<\/p>\n

    \u4e0d\u662f\u7684\u3002<\/p>\n

     <\/p>\n

    \u518d\u770b\u8fd9\u4e2aURL<\/p>\n

    http:\/\/localhost\/index.jsp?username=kxlzx%0d%0a%0d%0a<\/strong>alert(‘kxlzx<\/p>\n

    \u5f88\u65e0\u5948\u5427\uff1f<\/p>\n

    \u751f\u6210\u4e86\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n

    \n
    XML\/HTML\u4ee3\u7801<\/div>\n
      \n
    1. test  <\/span><\/span><\/li>\n
    2. <<\/span>script<\/span>><\/span>  <\/span><\/span><\/li>\n
    3.     \/\/alert(‘kxlzx  <\/span><\/li>\n
    4.   <\/span><\/li>\n
    5. alert(‘kxlzx ‘);  <\/span><\/li>\n
    6. <\/<\/span>script<\/span>><\/span>  <\/span><\/span><\/li>\n<\/ol>\n<\/div>\n

      \n\u6ce8\u91ca\u6389\u7684JS\uff0c\u4e5f\u6267\u884c\u4e86\u3002<\/p>\n

      \u6240\u4ee5\uff0c\u4e0d\u8981\u628a\u6ca1\u7528\u7684\u4ee3\u7801\uff0c\u6ce8\u91ca\u6389\u7684JS\u7b49\uff0c\u6254\u5230html\u91cc\u3002<\/p>\n

      \u4ee3\u7801\u5ba1\u6838\u662f\u4e2a\u7ec6\u6d3b\uff0c\u4efb\u4f55\u758f\u6f0f\u4e4b\u5904\u90fd\u503c\u5f97\u6ce8\u610f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

      \u5728 HTTP Response Splitting \u653b\u51fb \u4e2d\uff0c\u4e0d\u8981\u53ea\u770b\u5230header\u7684\u4e1c\u897f\uff0c\u8fd8\u6709\u4e00\u70b9\u662f\u9700\u8981\u6ce8\u610f\u7684\u3002<\/p>\n

      \\r\\n\u5b57\u7b26\u8fd8\u80fd\u505a\u4ec0\u4e48\uff1f<\/p>\n

      \u7ee7\u7eed\u9605\u8bfb »<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[87,5],"tags":[32],"views":5779,"_links":{"self":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/136"}],"collection":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":1,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/136\/revisions\/237"}],"wp:attachment":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}