Past ExamsRwanda ICT preparation

Topics / Cybersecurity

Typing ' OR '1'='1 into the username box of a portal's login form lets an attacker in without a password. What is the correct fix in the application?

Taper ' OR '1'='1 dans le champ du nom d'utilisateur du formulaire de connexion d'un portail permet à un attaquant d'entrer sans mot de passe. Quelle est la bonne correction dans l'application ?

Answers
AUse parameterised queries, not SQL built from inputUtiliser des requêtes paramétrées, pas du SQL construit à partir des saisies
BHide the login page from search enginesCacher la page de connexion aux moteurs de recherche
CMake every user's password much longerRendre le mot de passe de chaque utilisateur beaucoup plus long
DMove the database onto a separate serverDéplacer la base de données sur un serveur séparé
The answer and explanation are in the full bank.

This question is one of 2,831 in the paid banks. Each comes with the correct answer and the reasoning behind it, not just a mark.

Unlock for 5,000 RWF

MIFOTRA exam practicealigned to Practice set: Cybersecurity·2 marks·Medium

More Cybersecurity questions