TGViewer
Kamal Privacy Kamal Privacy @kamalprivacy · 239 subscribers
Post #99 333
یکی از چیزایی که باید دقت کنیم، بحث پیام ارور در پیاده‌سازی هست. فرض کنین یه سیستمی داریم که توی forget password ایمیل رو میگیره و

✅ اگر ایمیل درست باشه، پیام میده: ایمیل بازیابی رمز به ایمیل شما ارسال شد.
❌ اگر اشتباه باشه میگه: ایمیل وارد شده ثبت نشده. لطفا ایمیل صحیح را وارد کنید.

خب مشکل کجاست؟ من اگر یه برنامه بنویسم که خودکار ایمیلای مختلف رو چک کنه، می‌تونم بفهمم کیا توی سیستم ثبت‌نام کردن و کیا نکردن 🌝 و اینطوری دیتابیس ثبت‌نام کنندگان رو در میارم :)

اینجاست که کتاب Cryptography Engineering میگه:
Errors need very careful handling, as they are a potential avenue of attack. The safest procedure is not to send any reply to an error and immediately delete the protocol state. This minimizes the amount of information the attacker can get about the protocol.

Unfortunately, it makes for an unfriendly system, as there is no indication of the error. To make systems usable, you often need to add error messages of some sort. If you can get away with it, don’t send an error message to the other parties in the protocol. Log an error message on a secure log so the system administrator can diagnose the problem. If you must send an error message, make it as uninformative as possible. A simple “There was an error’” message is often sufficient.

Src: Cryptography Engineering
Design Principles and Practical Applications
, Niels Ferguson, Bruce Schneier, and Tadayoshi Kohno
  • ❤ 5
  • 👌 1
More from @kamalprivacy
  1. Oct 9, 2026شما اگر ایمیل برای کسی بفرستین، خب این ایمیل یه جا تو سرورا ذخیره میشه. و خب جایی که ایمیل…
  2. Oct 2, 2026اثبات کنید بین 0 و 1 عدد صحیحی نیست.🫪🫪 خب ما یه قضیه (Well-ordering theorem) داریم که می…
  3. Sep 15, 2026امروزا خبرایی شنیدیم که اطلاعات وی‌پی‌ان JumpJump در حال فروشه. ۳ ماه پیش (پیام ریپلای شده…
  4. Sep 11, 2026در رمزنگاری، ما با نظریه اعداد خیلی کار داریم. یه سوال ساده برای علاقه‌مندی به نظریه اعداد…
  5. Sep 6, 2026گاهی ما می‌خوایم امنیتمون رو خیلی بالا ببریم، به جاش باعث میشیم امنیت بیاد پایین!! ⬇ مثلا…
  6. Aug 25, 2026حتما شرکت کنین🌝
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →