[misc] Fixed two security concerns