An application's error page displays: 'Error in /var/www/app/models/user.rb:45:in authenticate: ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR: unterminated quoted string)'. What OWASP risk does this create?
- A.The message reveals the operating system (Linux, from the /var/www path), the web server user (www-data), the Ruby version (from the stack frame format), and the database dialect (PostgreSQL), enabling targeted exploit selection: this is A06 Vulnerable and Outdated Components (an outdated runtime), with the fix being an upgrade of Rails and PostgreSQL and a custom error handler for the production site
- B.The error message reveals the framework (Rails), ORM (ActiveRecord), file system path (/var/www/app/models/user.rb:45), database type (PostgreSQL), the specific vulnerable function (authenticate), and confirms that user input reached a SQL query unescaped - confirming SQL injection vulnerability and providing a roadmap for targeted exploitation. This is OWASP A05 (Security Misconfiguration) and A09 (Logging/Monitoring Failures)