Session fixation
چەسپاندنی سێشن
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
An attack in which the attacker makes the victim use a that the attacker already knows. After the victim logs in, the attacker uses the same ID. Prevent it by calling session_regenerate_id(true) right after .
هێرشێکە کە تێیدا هێرشبەر وا لە قوربانی دەکات بەکاربهێنێت کە هێرشبەر پێشتر دەیزانێت. دوای ئەوەی قوربانی دەچێتە ژوورەوە، هێرشبەر هەمان ناسێنەر بەکار دەهێنێت. بە بانگکردنی session_regenerate_id(true) ڕاستەوخۆ دوای ڕێگەی لێ بگرە.
Exampleنموونە
Give the user a new session ID as soon as the password is correct.
هەر کە تێپەڕەوشەکە دروست بوو، ناسێنەرێکی نوێی سێشن بدە بە بەکارهێنەر.
if (password_verify($password, $row['password'])) {
session_regenerate_id(true);
$_SESSION['user_id'] = $row['id'];
}Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
جێگیرکردنی سێشن، چەسپاندنی سێشنەکە، چەسپاندنی سێشنی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
چەسپاندن = 'fixing in place': the attacker fixes the ID before login.