繁中版| 簡中版| العربية | azərbaycan| বাংলা| català| čeština|德意志| εληνικά| Español| فف| Français| हिंदी|印度尼西亞| Italiano | 日本語| 한국어| ພາສາລາວ| lim lim | | മലയാളം|聚| Nederlands | Polski |葡萄牙(巴西)| n ไทย| Türkçe| Y時間tiếngviệt| π了
在設計,測試和發布API時,最重要的安全對策清單的清單。
Basic Auth
。改用標準身份驗證(例如JWT)。 Authentication
, token generation
, password storage
重新發明輪子。使用標準。 Max Retry
和監獄功能。 JWT Secret
)使野蠻人非常迫使令牌。 HS256
或RS256
)。 RTTL
TTL
。 HSTS
標題避免SSL帶攻擊。 redirect_uri
服務器端,以僅允許安全的URL。 response_type=token
)。 state
參數來防止在OAUTH授權過程中進行CSRF。 GET (read)
, POST (create)
, PUT/PATCH (replace/update)
,然後DELETE (to delete a record)
,如果請求的方法為ISN,則405 Method Not Allowed
適用於請求的資源。 content-type
接受標題(內容協商)僅允許您的支持格式(例如, application/xml
, application/json
等),並以406 Not Acceptable
響應,如果不匹配。 content-type
(例如, application/x-www-form-urlencoded
, multipart/form-data
, application/json
等)。 XSS
, SQL-Injection
, Remote Code Execution
等)。 credentials
, Passwords
, security tokens
或API keys
),而是使用標準授權標頭。 Quota
, Spike Arrest
或Concurrent Rate Limit
)並動態部署APIS資源。 /me/orders
代替/user/654321/orders
。 UUID
。 XXE
(XML外部實體攻擊)。 Billion Laughs/XML bomb
。 X-Content-Type-Options: nosniff
標頭。 X-Frame-Options: deny
標題。 Content-Security-Policy: default-src 'none'
標頭。 X-Powered-By
, Server
, X-AspNet-Version
等。 content-type
為您的響應。如果您返回application/json
,則您的content-type
響應是application/json
。 credentials
, passwords
或security tokens
等敏感數據。 200 OK
, 400 Bad Request
, 401 Unauthorized
, 405 Method Not Allowed
等)。 通過分配此存儲庫,進行一些更改並提交拉力請求來隨意做出貢獻。無論如何,請給我們發送電子郵件至[email protected]
。