{"id":17,"date":"2026-05-20T19:46:32","date_gmt":"2026-05-20T11:46:32","guid":{"rendered":"http:\/\/tangjin.xyz\/?p=17"},"modified":"2026-05-21T18:52:16","modified_gmt":"2026-05-21T10:52:16","slug":"iscc%e8%b4%a6%e5%8f%b7%e6%81%a2%e5%a4%8d%e5%a4%a7%e5%86%92%e9%99%a9%e7%9f%a5%e8%af%86%e7%82%b9","status":"publish","type":"post","link":"http:\/\/tangjin.xyz\/index.php\/2026\/05\/20\/iscc%e8%b4%a6%e5%8f%b7%e6%81%a2%e5%a4%8d%e5%a4%a7%e5%86%92%e9%99%a9%e7%9f%a5%e8%af%86%e7%82%b9\/","title":{"rendered":"ISCC\u8d26\u53f7\u6062\u590d\u5927\u5192\u9669\u77e5\u8bc6\u70b9"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">ISCC Web &#8211; \u8d26\u53f7\u6062\u590d \u77e5\u8bc6\u70b9\u603b\u7ed3<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u8003\u70b9\u4e00\uff1aJWT \u7b7e\u540d\u672a\u6821\u9a8c \u2192 \u8d8a\u6743<\/h2>\n\n\n\n<p><strong>\u95ee\u9898\uff1a<\/strong> \u540e\u7aef\u63a5\u53d7 JWT \u4f46\u4e0d\u9a8c\u8bc1\u7b7e\u540d\uff0c\u5bfc\u81f4\u53ef\u4ee5\u968f\u610f\u7be1\u6539 payload\u3002<\/p>\n\n\n\n<p><strong>\u653b\u51fb\u6d41\u7a0b\uff1a<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6ce8\u518c\u666e\u901a\u8d26\u53f7\uff0c\u767b\u5f55\u62ff\u5230 JWT<\/li>\n\n\n\n<li>Base64url \u89e3\u7801 payload \u90e8\u5206\uff0c\u770b\u5230 <code>\"status\": \"NORMAL\"<\/code><\/li>\n\n\n\n<li>\u6539\u4e3a <code>\"status\": \"RECOVERY\"<\/code>\uff0c\u91cd\u65b0 Base64url \u7f16\u7801\u62fc\u56de\u53bb<\/li>\n\n\n\n<li>\u7b7e\u540d\u90e8\u5206\u539f\u6837\u4fdd\u7559\uff0c\u4e0d\u4fee\u6539<\/li>\n\n\n\n<li>\u5e26\u7740\u7be1\u6539\u540e\u7684 JWT \u8bbf\u95ee <code>\/recovery<\/code>\uff0c\u6210\u529f\u8fdb\u5165\u9690\u85cf\u6062\u590d\u9875\u9762<\/li>\n<\/ol>\n\n\n\n<p><strong>\u6838\u5fc3\u539f\u56e0\uff1a<\/strong> \u670d\u52a1\u7aef\u53ea\u89e3\u7801 JWT \u8bfb\u53d6\u5b57\u6bb5\uff0c\u5374\u6ca1\u6709\u7528\u5bc6\u94a5\u9a8c\u8bc1\u7b7e\u540d\u662f\u5426\u5408\u6cd5\u3002\u76f8\u5f53\u4e8e\u53ea\u770b\u4e86\u8eab\u4efd\u8bc1\u4e0a\u7684\u5b57\uff0c\u6ca1\u68c0\u67e5\u5370\u7ae0\u771f\u5047\u3002<\/p>\n\n\n\n<p><strong>\u9632\u5fa1\uff1a<\/strong> \u6bcf\u6b21\u63a5\u6536 JWT \u5fc5\u987b\u7528\u5bc6\u94a5\u9a8c\u7b7e\uff1b\u8003\u8651\u7528 <code>PyJWT<\/code> \u63d0\u4f9b\u7684\u9ad8\u5c42 API\uff08<code>jwt.decode<\/code> \u81ea\u52a8\u9a8c\u7b7e\uff09\uff0c\u800c\u4e0d\u662f\u624b\u52a8 <code>base64<\/code> \u89e3\u7801\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u8003\u70b9\u4e8c\uff1a\u524d\u7aef\u9759\u6001\u8d44\u6e90\u6cc4\u9732\u9690\u85cf\u8def\u5f84<\/h2>\n\n\n\n<p>\u901a\u8fc7\u67e5\u770b CSS \u6837\u5f0f\u6587\u4ef6\uff0c\u53d1\u73b0\u4e86 <code>.recovery<\/code> \u76f8\u5173\u7684 class \u548c\u4e34\u65f6\u51ed\u8bc1\u3001\u9a8c\u8bc1\u6b65\u9aa4\u7b49\u6837\u5f0f\u3002\u8bf4\u660e\u5b58\u5728 <code>\/recovery<\/code> \u9690\u85cf\u9875\u9762\uff0c\u76f4\u63a5\u6784\u9020 URL \u8bbf\u95ee\u5373\u53ef\u3002<\/p>\n\n\n\n<p><strong>\u901a\u7528\u601d\u8def\uff1a<\/strong> \u9047\u5230\u53ea\u6709\u767b\u5f55\/\u6ce8\u518c\u7684\u9875\u9762\uff0c\u7ffb\u4e00\u4e0b\u524d\u7aef\u9759\u6001\u6587\u4ef6\uff08CSS\u3001JS\uff09\uff0c\u7ecf\u5e38\u80fd\u53d1\u73b0\u6ce8\u91ca\u91cc\u7684\u8def\u5f84\u3001\u9690\u85cf\u529f\u80fd\u7684\u6837\u5f0f\u540d\u3001\u8c03\u8bd5\u63a5\u53e3\u7b49\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u8003\u70b9\u4e09\uff1aSQL \u62a5\u9519\u6ce8\u5165 (updatexml)<\/h2>\n\n\n\n<p><strong>\u6ce8\u5165\u70b9\uff1a<\/strong> <code>\/api\/v1\/user\/sync<\/code> \u63a5\u53e3\u7684 <code>theme<\/code> \u53c2\u6570\uff0c\u503c\u88ab\u76f4\u63a5\u62fc\u63a5\u5230 SQL \u8bed\u53e5\u4e2d\u3002<\/p>\n\n\n\n<p><strong>\u5224\u65ad\u65b9\u6cd5\uff1a<\/strong> \u4f20\u5165\u5355\u5f15\u53f7 <code>'<\/code>\uff0c\u8fd4\u56de SQL \u9519\u8bef\u4fe1\u606f\uff0c\u786e\u8ba4\u62fc\u63a5\u70b9\u5b58\u5728\u3002<\/p>\n\n\n\n<p><strong>\u5229\u7528\u51fd\u6570\uff1a<\/strong> <code>updatexml()<\/code> \u662f MySQL\/MariaDB \u7279\u6709\u7684 XML \u51fd\u6570\uff0c\u5f53\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e0d\u662f\u5408\u6cd5 XPath \u65f6\u4f1a\u62a5\u9519\u5e76\u56de\u663e\u5185\u5bb9\u3002<\/p>\n\n\n\n<p><strong>Payload \u6a21\u677f\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>' and updatexml(1, concat(0x7e, (\u67e5\u8be2\u8bed\u53e5), 0x7e), 1) and '<\/code><\/pre>\n\n\n\n<p><code>0x7e<\/code> \u662f <code>~<\/code>\uff0c\u7528\u4f5c\u5206\u9694\u7b26\u9632\u6b62\u62a5\u9519\u4fe1\u606f\u6df7\u5728\u4e00\u8d77\u3002\u8fde\u7eed\u4e24\u4e2a <code>and<\/code> \u4fdd\u8bc1\u524d\u540e SQL \u8bed\u6cd5\u5b8c\u6574\u3002<\/p>\n\n\n\n<p><strong>\u62a5\u9519\u6ce8\u5165\u5e38\u7528\u64cd\u4f5c\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u76ee\u6807<\/th><th>\u5b50\u67e5\u8be2<\/th><\/tr><\/thead><tbody><tr><td>\u5f53\u524d\u5e93\u540d<\/td><td><code>select database()<\/code><\/td><\/tr><tr><td>\u6240\u6709\u8868\u540d<\/td><td><code>select group_concat(table_name) from information_schema.tables where table_schema=database()<\/code><\/td><\/tr><tr><td>\u67d0\u8868\u7684\u5217\u540d<\/td><td><code>select group_concat(column_name) from information_schema.columns where table_name='flags'<\/code><\/td><\/tr><tr><td>\u8bfb\u6570\u636e<\/td><td><code>select flag from flags limit 1<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u7ed5\u8fc7\u957f\u5ea6\u9650\u5236\uff1a<\/strong> <code>updatexml<\/code> \u5355\u6b21\u62a5\u9519\u56de\u663e\u7ea6 32 \u5b57\u7b26\uff0c\u7528 <code>substr((\u67e5\u8be2), \u504f\u79fb, \u6b65\u957f)<\/code> \u5206\u6bb5\u8bfb\uff0c\u6bcf\u6b21 16 \u5b57\u7b26\u6700\u7a33\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u6574\u4f53\u653b\u51fb\u94fe<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\u6ce8\u518c\u767b\u5f55 \u2192 \u62ff JWT \u2192 \u7be1\u6539 status\u2192RECOVERY \u2192 \n\u8fdb\u5165 \/recovery \u2192 \u53d1\u73b0 \/api\/v1\/user\/sync \u2192 \ntheme \u53c2\u6570 SQL \u62a5\u9519\u6ce8\u5165 \u2192 updatexml \u5206\u6bb5\u8bfb flags \u8868 \u2192 \u62ff\u5230 flag<\/code><\/pre>\n\n\n\n<p><strong>\u4e00\u53e5\u8bdd\uff1a<\/strong> JWT \u4e0d\u9a8c\u7b7e\u7ed9\u4e86\u95e8\u7981\u5361\uff0cSQL \u6ce8\u5165\u7ed9\u4e86\u7ffb\u62bd\u5c49\u7684\u80fd\u529b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u5de5\u5177\u5907\u5fd8<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>JWT \u89e3\u7801\/\u7f16\u7801\uff1a<\/strong> jwt.io \u5728\u7ebf\u5de5\u5177\u3001CyberChef\u3001BurpSuite JWT Editor \u63d2\u4ef6<\/li>\n\n\n\n<li><strong>SQL \u6ce8\u5165\uff1a<\/strong> sqlmap \u53ef\u4ee5\u8dd1\uff0c\u4f46\u624b\u6ce8\u7528 <code>updatexml<\/code> + <code>substr<\/code> \u5206\u6bb5\u8bfb\u66f4\u53ef\u63a7<\/li>\n\n\n\n<li><strong>Python requests \u53d1\u5305\uff1a<\/strong> \u6ce8\u610f JWT \u7528 <code>session.cookies.set(\"token\", jwt)<\/code> \u653e\u5728 cookie \u91cc\u4f20<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>ISCC Web &#8211; \u8d26\u53f7\u6062\u590d \u77e5\u8bc6\u70b9\u603b\u7ed3 \u8003\u70b9\u4e00\uff1aJWT \u7b7e\u540d\u672a\u6821\u9a8c \u2192 \u8d8a\u6743 \u95ee\u9898\uff1a \u540e\u7aef\u63a5\u53d7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":1,"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":18,"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/posts\/17\/revisions\/18"}],"wp:attachment":[{"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tangjin.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}