توضیح (فارسی)
ش neden قرینه اطلاعات حساس در فایل لاگ در team-alembic ash_authentication به خواننده لاگ حسابرسی امکان میدهد تا به عنوان هر کاربری که با کلید API وارد شده است، وارد شود. افزونه audit_log هر آرگومان عمومی یک عملیات حسابرسی شده که به عنوان sensitive? علامتگذاری نشده باشد، ثبت میکند. عملیات ورود با کلید API که توسط mix ash_authentication.add_strategy.api_key، راهنمای کلیدهای API و قوانین استفاده نوشته شده، api_key را بدون sensitive? اعلام میکند، و هیچ چیز آن را اجبار نمیکرد، بنابراین هر ورود با کلید API، شامل هر درخواستی که AshAuthentication.Strategy.ApiKey.Plug احراز هویت میکند، کلید متن ساده را در extra_data ورودی ذخیره میکرد. برنامه فقط هشهای کلید را نگه میدارد، اما هر کسی که بتواند جدول حسابرسی، پشتیبانهای آن یا یک نمای ادمین از آن را بخواند، کلیدهای کارآمد را به دست میآورد. توکنهای لینک جادویی و تایید، رمزهای یکبار مصرف، و کدهای TOTP و بازیابی به همین روش ذخیره میشدند وقتی عملیات آنها را به عنوان sensitive علامتگذاری نمیکرد. این مشکل بر ash_authentication تأثیر میگذارد: از 4.12.0 تا قبل از 4.15.2 و از 5.0.0-rc.0 تا قبل از 5.0.0-rc.19.
Original description (English)
Insertion of Sensitive Information into Log File vulnerability in team-alembic ash_authentication allows a reader of the audit log to sign in as any user who has signed in with an API key.
The audit_log add-on records every public argument of an audited action that is not marked sensitive?. The API key sign-in action written by mix ash_authentication.add_strategy.api_key, the API keys guide and the usage rules declares api_key without sensitive?, and nothing required it, so every API key sign-in, including each request AshAuthentication.Strategy.ApiKey.Plug authenticates, stored the plaintext key in the entry's extra_data. The application keeps only key hashes, but anyone who can read the audit table, its backups or an admin view of it obtains working keys. Magic link and confirmation tokens, one-time passwords, and TOTP and recovery codes were stored the same way when the action did not mark them sensitive.
This issue affects ash_authentication: from 4.12.0 before 4.15.2 and from 5.0.0-rc.0 before 5.0.0-rc.19.