Code Room
Code reviewHardcr-g561
Subject Security injection sstiLevel Senior–Staff~22 minCommon in Security interviewsIndustries Software development

Question

Review this Python Flask endpoint that renders a personalized greeting.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewpython
from flask import request, render_template_string @app.route('/hello')def hello():    name = request.args.get('name', 'there')    template = f"<h1>Hello {name}!</h1>"    return render_template_string(template)
Run or narrate your approach, then ask the coach.