QuestionQ47Verified/704.1 Cloud Native SecurityCopy linkReport a problemAsk AstroTutorSave questionUnder what circumstances can an SQL injection attack occur?AWhen strings of arbitrary length are passed to a database so they can exceed the length of a data type or data field.BWhen characters or strings received from an external source are passed unchanged to a database so they can include SQL statements.CWhen SQL statements are stored as database content and might be returned unchanged to a client querying the database.DWhen database queries of an application are redirected to another server which then receives confidential information and might return manipulated data.EWhen an API, which causes writes to the database, can be triggered remotely without rate limits or other restrictions.Show AnswerAnswerExplanationSQL injection is possible when untrusted characters or strings from an external source are passed into database SQL unchanged, allowing that input to be interpreted as part of a SQL statement rather than solely as data. Parameterized queries prevent this by separating data values from SQL syntax.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion