I was testing an web application which is written in Ruby, Rails framework, when I stumbled on the following request which was sent. I modified the request and now it displays me a part of the query of an SQL. I am not familiar with SQL in Ruby, so I was wondering if the following is vulnerable to SQLI.
POST REQUEST:
PUT /campaigns/**_42789_** HTTP/1.1
Host: test.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/json; charset=utf-8
X-Requested-With: XMLHttpRequest
Content-Length: 31
Cookie: cokies here
Connection: keep-alive
{"email_campaign":{"id":42789}}
RESPONSE:
{"message":"Couldn't find Promotion with [WHERE `promotions`.`id` = ? AND (user_id IN (2170,2313) OR master_user_id = 2313)]"}
Is SQLI possible here?