惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
I
InfoQ
B
Blog RSS Feed
D
Docker
GbyAI
GbyAI
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
F
Fortinet All Blogs
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
M
MIT News - Artificial intelligence
C
Check Point Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
博客园 - Franky
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
Last Week in AI
Last Week in AI
L
LangChain Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
A Chinese Language Teacher's API Security Check (3) : Pre...
xiaoqiangapi · 2026-05-05 · via DEV Community

Hello everyone, I'm @xiaoqiangapi, the Chinese teacher who gives apis a "check-up".

An article on , my SQL injection, XSS and prompt hijacked, API are blocked off. Let's take a different approach today - ** not attack, test 'resilience' **. Would the API crash if a sudden wave of requests came in, or if someone typed several thousand characters? I'm curious about it.

The tools are still the same old two: Postman and Windows' built-in curl. An honest test by a non-security expert, now going on.


Test (7) : High Frequency Requests (Rate limiting)

** Test purpose ** : To see if the API triggers "rate limiting" and returns error code 429 when sending requests frantically.
! Multiple consecutive API requests sent, server responds normally, no 429 status code returned
** Conclusion ** : I didn't detect 429 (Too Many Requests). The frequency of normal developer usage doesn't trigger rate limiting at all. Cloudflare will automatically block malicious traffic, but not restrict normal users. ** The platform did this for me *, so it's not a failure, nor a complete pass, 0.5 points.
⚠️ *
half-pass ** -- the platform is protected, but the API layer does not explicitly return 429, which is less visible to frequent malicious requests.


Test (8) : Extra-long input (DoS protection)

** Test purpose ** : Send an extremely long request (several thousand repetitive characters) to the API to see if the service gets "overwhelmed" or crashes.
Request body contains thousands of repeated A characters, server returns 200 OK, model responds normally
** Conclusion ** : Sending thousands of repeated characters "A", the API returns 200 OK, the model responds normally, and the service does not crash.
✅ ** through ** - a single extreme input does not cause the service to be unavailable.


Test (9) : Special Characters with Multilingual Support

Test purpose : Mix Korean, Emoji, etc. into the request to see if the API garbled or crashed.

Request body with Korean and emoji, server returns 200 OK, model responds normally without garbled text

Conclusion : The request contained Korean and emoji (😊🎵), the API returned 200 OK, the model responded normally, no garbled text or crash.
Passed — Multilingual and special character support confirmed.


Summary

Three "Pressure and compatibility" tests, results: two completely pass and one half pass.

/ Test items/Test objectives/results /
|---|---|---|
/ High frequency requests (rate limiting)/Will be flooded / ⚠️ half-pass (platform already protected) /
Extra-long input (DoS) : Will it be overwhelmed? ✅ pass
Special characters and multilingualism: Garbled text: ✅ pass

Overall, the API's resilience is decent, at least it can stand up to normal use by ordinary developers.


Next preview

Final test: *HTTPS/TLS Transport encryption *, and then I'll publish the full score sheet of 10 security tests. A layman's 9.5-point answer sheet, look forward to it.

If you have any additional information about my testing methods or would like me to test something else, please let me know in the comment section. I'm not a security expert and I really need your sharp eyes.


  • About me and my API*
  • I'm a nearly 50-year-old former Chinese teacher who taught myself programming from scratch and is publicly building a Chinese large model API relay service. All the tests in this series were done by my own hands and recorded honestly, without any exaggeration or underestimation. *

more or free trial API

** Today 's interactive question ** : Have you ever been tormented by API' rate limiting '? Or have you ever had a ridiculous experience with your API crashing because of special characters? Share your story in the comment section.