Fix potential /hook DOS vulnerability