A few days back while doing an assessment, I came across an
application that used JSON based HTTP POST requests to retrieve data from their
backend database. The application itself issued these requests using AJAX. JSON
(JavaScript Object Notation) is used for serializing data over HTTP being
transmitted between an application and server. Here
is quick guide to JSON.
Now, in this particular application when certain fields are
modified with some bad characters like single quote (‘) or double dash (--) it
results in a stack trace which refers to some form of SQL error. From the looks
and feel of the trace it’s probably a Microsoft IIS backend.