Unexpected SQL queries to Postgres database on Rails/Heroku

前端 未结 4 909
灰色年华
灰色年华 2021-02-07 10:47

I was diving into a really long request to one of my Rails applications using NewRelic and found a number of SQL queries that appear entirely foreign that are taking up a signif

4条回答
  •  春和景丽
    2021-02-07 11:13

    are queries generated from user input in your application? if so, if you don't have controls on user input, then maybe it's an sql injection from someone trying to hack your app.

    http://en.wikipedia.org/wiki/SQL_injection

    i'm not real familiar with rails, so i don't know if it has automatically created queries that you as the developer don't know about, but i wouldn't think so.

提交回复
热议问题