{"id":514,"date":"2024-09-29T17:05:04","date_gmt":"2024-09-29T09:05:04","guid":{"rendered":"https:\/\/ahui.blog\/?p=514"},"modified":"2024-09-29T22:08:39","modified_gmt":"2024-09-29T14:08:39","slug":"django-dos-cve-2024-41989","status":"publish","type":"post","link":"https:\/\/ahui.blog\/index.php\/2024\/09\/29\/django-dos-cve-2024-41989\/","title":{"rendered":"Django-DOS\u6f0f\u6d1e\u5206\u6790&#038;\u590d\u73b0\uff08CVE-2024-41989\uff09"},"content":{"rendered":"<p><strong>PS\uff1a\u9700\u8981\u590d\u73b0\u4ee3\u7801\u7684\u8bdd\uff0c\u53ef\u4ee5\u52a0\u6211VX<\/strong><\/p>\n<p><strong>\u6f0f\u6d1e\u6765\u6e90\uff1a<\/strong><a href=\"https:\/\/hackerone.com\/reports\/2644244\">https:\/\/hackerone.com\/reports\/2644244<\/a><\/p>\n<p><strong>\u5b98\u65b9\u5b89\u5168\u516c\u544a\uff1a<\/strong><a href=\"https:\/\/www.djangoproject.com\/weblog\/2024\/aug\/06\/security-releases\/\">https:\/\/www.djangoproject.com\/weblog\/2024\/aug\/06\/security-releases\/<\/a><\/p>\n<p><strong>\u6f0f\u6d1e\u5f71\u54cd\uff1a<\/strong>Django\u7248\u672c\u5c0f\u4e8e5.0.8\u6216\u5c0f\u4e8e4.2.15<\/p>\n<p><strong>\u7b80\u4ecb\uff1a<\/strong>Hackerone\u4e0a\u7ed9\u51fa\u7684\u6f0f\u6d1e\u7b80\u4ecb\u4e3adjango.utils.numberformat.floatformat() \u4e2d\u7684\u5185\u5b58\u8017\u5c3d\u5f53\u7ed9\u51fa\u5177\u6709\u5927\u6307\u6570\u7684\u79d1\u5b66\u8ba1\u6570\u6cd5\u6570\u5b57\u7684\u5b57\u7b26\u4e32\u8868\u793a\u5f62\u5f0f\u65f6\uff0cfloatformat \u6a21\u677f\u8fc7\u6ee4\u5668\u4f1a\u6d88\u8017\u5927\u91cf\u5185\u5b58\u3002<\/p>\n<h4>\u6f0f\u6d1e\u590d\u73b0\uff1a<\/h4>\n<p>\u4e00\u3001\u6b63\u5e38\u8c03\u7528\uff0c\u4f20\u5165\u6b63\u5e38\u6570\u5b571\uff0c\u67e5\u770b\u8017\u65f6\u4e3a\uff1a0.0072176456451416016 \u79d2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929143549390.png\" alt=\"image-20240929143549390\" \/><\/p>\n<p>\u4e8c\u3001\u4f20\u5165\u5927\u6307\u65709e99999\uff0c\u67e5\u770b\u8017\u65f6\u4e3a\uff1a0.46574854850769043 \u79d2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929143634281.png\" alt=\"image-20240929143634281\" \/><\/p>\n<p>\u4e09\u3001\u589e\u5927\u4f20\u5165\u6307\u65709e999999\uff0c\u67e5\u770b\u8017\u65f6\u4e3a\uff1a45.13413095474243 \u79d2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929143842777.png\" alt=\"image-20240929143842777\" \/><\/p>\n<p>\u56db\u3001\u6839\u636e\u8017\u65f6\u7ed3\u679c\u6765\u770b\uff0c\u786e\u5b9e\u53ef\u4ee5\u8fbe\u5230DOS\u6548\u679c\uff0c\u5347\u7ea75.0.10\u7248\u672c\u540e\uff0c\u91cd\u8bd5\uff08\u524d\u9762\u6ca1\u6709\u8f93\u51fa\u7ed3\u679c\u662f\u56e0\u4e3a\u8f93\u51fa\u7684\u6570\u5b57\u8fc7\u4e8e\u957f\uff0c\u8fd9\u91cc\u770b\u5230\u4fee\u590d\u4e4b\u540e\u662f\u628a\u6307\u6570\u76f4\u63a5\u539f\u6837\u8f93\u51fa\u51fa\u6765\u4e86\uff0c\u6ca1\u6709\u505a\u8f6c\u6362\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929144206783.png\" alt=\"image-20240929144206783\" \/><\/p>\n<h4>\u6f0f\u6d1e\u5206\u6790<\/h4>\n<p>\u4e00\u3001\u4e0b\u65ad\u70b9\u8c03\u8bd5\uff0c\u67e5\u770b\u662f\u54ea\u91cc\u8017\u65f6\uff0c\u7b2c\u4e00\u6b65\u8fdb\u5165floatformat\u51fd\u6570\uff0c\u5c31\u627e\u5230\u4e86\u8017\u65f6\u7684\u5730\u65b9\uff08\u4e24\u4e2a\u65ad\u70b9\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929152026672.png\" alt=\"image-20240929152026672\" \/><\/p>\n<p>\u4e8c\u3001\u5f88\u660e\u663e\u5c31\u662fint\u8f6c\u6362\u7684\u65f6\u5019\u4ea7\u751f\u4e86\u8017\u65f6\uff0c\u5e76\u4e14int\u8f6c\u6362\u7684\u5185\u5bb9\u662fDecimal\u8f6c\u6362\u8fc7\u7684\u5bf9\u8c61\uff0c\u90a3\u4e48\u5148\u770bDecimal\u662f\u4ec0\u4e48\u7c7b\u578b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929152249025.png\" alt=\"image-20240929152249025\" \/><\/p>\n<p>\u770b\u4e0a\u53bb\u5c31\u662f\u8ba9\u6d6e\u70b9\u6570\u66f4\u7cbe\u51c6\uff0c\u5c1d\u8bd5\u7528\u8d77\u6765\u8c8c\u4f3c\u6b63\u5e38\u4f7f\u7528\u548c\u666e\u901a\u6d6e\u70b9\u6570\u4e5f\u6ca1\u4ec0\u4e48\u533a\u522b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929153102581.png\" alt=\"image-20240929153102581\" \/><\/p>\n<p>\u4e09\u3001\u518d\u6765\u770bint\u65b9\u6cd5\u662f\u53ef\u4ee5\u5904\u7406\u6307\u6570\u7684<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929153454914.png\" alt=\"image-20240929153454914\" \/><\/p>\n<p>\u4f46\u662f\u5728\u5904\u7406\u8f83\u5927\u6307\u6570\u65f6\u5c31\u4f1a\u62a5\u9519\uff0c\u5982\u4e0b\u56fe<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929153521703.png\" alt=\"image-20240929153521703\" \/><\/p>\n<p>\u5982\u679c\u8fd9\u4e2a\u6307\u6570\u5148\u4f7f\u7528Decimal\u6765\u5904\u7406\u8fc7\u5462\uff1f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929153607807.png\" alt=\"image-20240929153607807\" \/><\/p>\n<p>\u8fd9\u4e2a\u5947\u602a\u7684\u73b0\u8c61\uff0c\u95ee\u4e0bGPT\uff0c\u5982\u4e0b\u56feChatGPT4o\u4e0d\u592a\u884c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929162722036.png\" alt=\"image-20240929162722036\" \/><\/p>\n<p>\u8fd8\u5f97\u662fChatGPT o1-preview<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929165645295.png\" alt=\"image-20240929165645295\" \/><\/p>\n<p>\u56db\u3001<strong>\u603b\u7ed3\u4e00\u4e0b\uff1a<\/strong>\u6d6e\u70b9\u6570\u8d85\u8fc7\u65e0\u7a77\u5927\u662f\u5904\u7406\u4e0d\u4e86\u7684\uff0c\u4f46\u662f\u53ef\u4ee5\u7528Decimal\u5148\u628a\u5927\u6570\u8f6c\u6362\u4e3a\u4e00\u4e2a\u7cbe\u786e\u7684\u5341\u8fdb\u5236\u6570\uff0c\u5c31\u907f\u514d\u4e86\u62a5\u9519\uff0c\u7136\u540e\u628a\u8fd9\u4e2a\u5927\u6570\u4f20\u7ed9int\u53bb\u5904\u7406\u8f6c\u6362\uff0c\u4ece\u800c\u6d88\u8017\u8d44\u6e90\u3002<\/p>\n<h4>\u5b98\u65b9\u4fee\u590d\u65b9\u6cd5\u5206\u6790<\/h4>\n<p>\u4e00\u3001\u5728\u4ee3\u7801\u4e2d\u52a0\u5165\u4e86\u4e00\u4e2a\u5224\u65ad\u903b\u8f91\u5982\u4e0b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929171652637.png\" alt=\"image-20240929171652637\" \/><\/p>\n<p>\u4e8c\u3001\u4ea4\u7ed9GPT\u5206\u6790<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929213559264.png\" alt=\"image-20240929213559264\" \/><\/p>\n<p>\u7b80\u5355\u6765\u8bf4\u5c31\u662f\u8ba1\u7b97\u5b9e\u9645\u5927\u5c0f\uff0c\u7ecf\u8fc7\u4e00\u7cfb\u5217\u6d4b\u8bd5\uff0c\u5305\u62ec\u5404\u79cd\u79d1\u5b66\u6280\u672f\u6cd5\u7684\u53d8\u5f62\uff0c\u4ee5\u53ca\u4f7f\u7528\u65e0\u7a77\u7b49\uff0c\u4e5f\u6ca1\u627e\u5230\u7ed5\u8fc7\u65b9\u6cd5\uff0c\u6709\u7ed5\u8fc7\u601d\u8def\u7684\u5927\u4f6c\u53ef\u4ee5\u8ba8\u8bba\u4e0b\u3002<\/p>\n<h4>\u6269\u5c55\u5ef6\u4f38<\/h4>\n<p>\u641c\u4e86\u4e00\u4e0bDjango\u4ee3\u7801\u4e2d\u8fd8\u6709\u54ea\u91cc\u7b26\u5408\u8fd9\u79cd\u6f0f\u6d1e\u7684\uff0c\u627e\u5230\u4e86\u4e00\u5904\u6bd4\u8f83\u7b26\u5408\uff0c\u4f46\u662f\u5229\u7528\u4e0d\u4e86\u7684\uff0c\u5728from django.utils.translation.__init__.py\u7684round_away_from_one\u65b9\u6cd5\uff0c\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929215459154.png\" alt=\"image-20240929215459154\" \/><\/p>\n<p>\u4f46\u7ecf\u8fc7\u6d4b\u8bd5\uff0c\u8be5\u65b9\u6cd5\u4f20\u5165\u7684value\u662fstr\u7c7b\u578b\u65f6\uff0c\u7531\u4e8e\u7c7b\u578b\u4e0d\u5339\u914d\uff0c\u5728Decimal\u65b9\u6cd5\u4e2d-1\u65f6\u4f1a\u62a5\u9519\uff1a<img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929215631796.png\" alt=\"image-20240929215631796\" \/><\/p>\n<p>\u4f46Decimal\u65b9\u6cd5\u5904\u7406\u5927\u6570\u89e3\u6790\u4e3a\u7cbe\u786e\u6d6e\u70b9\u578b\u65f6\uff0c\u53ea\u63a5\u53d7\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u5927\u6570\uff0c\u800c\u6570\u5b57\u7c7b\u578b\u7684\u5927\u6570\u4f1a\u89e3\u6790\u4e3a\u6b63\u65e0\u7a77<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929215722023.png\" alt=\"image-20240929215722023\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929215736210.png\" alt=\"image-20240929215736210\" \/><\/p>\n<p>int\u5904\u7406\u6b63\u65e0\u7a77\u4f1a\u62a5\u9519<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/ahui.blog\/wp-content\/uploads\/2024\/09\/image-20240929220348277.png\" alt=\"image-20240929220348277\" \/><\/p>\n<p>\u6240\u4ee5\u8fd9\u91cc\u4e5f\u6ca1\u529e\u6cd5\u4f20\u5165\u4e00\u4e2a\u5927\u6570\u7ed9int\u5904\u7406\uff0c\u4e5f\u5c31\u65e0\u6cd5\u9020\u6210DOS\u6f0f\u6d1e\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PS\uff1a\u9700\u8981\u590d\u73b0\u4ee3\u7801\u7684\u8bdd\uff0c\u53ef\u4ee5\u52a0\u6211VX \u6f0f\u6d1e\u6765\u6e90\uff1ahttps:\/\/hackerone.com\/reports\/2 &#8230; <a title=\"Django-DOS\u6f0f\u6d1e\u5206\u6790&#038;\u590d\u73b0\uff08CVE-2024-41989\uff09\" class=\"read-more\" href=\"https:\/\/ahui.blog\/index.php\/2024\/09\/29\/django-dos-cve-2024-41989\/\" aria-label=\"\u7ee7\u7eed\u9605\u8bfbDjango-DOS\u6f0f\u6d1e\u5206\u6790&#038;\u590d\u73b0\uff08CVE-2024-41989\uff09\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-514","post","type-post","status-publish","format-standard","hentry","category-recurrence_analysis","category-vulnerability_mining"],"_links":{"self":[{"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/posts\/514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/comments?post=514"}],"version-history":[{"count":4,"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/posts\/514\/revisions"}],"predecessor-version":[{"id":539,"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/posts\/514\/revisions\/539"}],"wp:attachment":[{"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/media?parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/categories?post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahui.blog\/index.php\/wp-json\/wp\/v2\/tags?post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}