Aista – Magic Cloud – Generate a CRUD app in seconds

Categories
API Database

GraphQL a security disaster waiting to unfold

I have no doubts that both Facebook and GitHub knows how to correctly apply GraphQL. My article was written for the rest of the world

GraphQL is a security disaster – Aista

A couple of days ago I wrote an article here called GraphQL a hot smoking pile of garbage. In the article I was arguing that GraphQL was nothing but “JSON based sql injection attacks”. Everybody arguing against me told me “this is not how it is being used, you need to study how it’s used, your opinion is based upon faulty assumptions, etc”. Well, take a look at the following architectural sketch and feel free to explain. The following image basically proves that GraphQL is a security disaster.

GraphQL is a security disaster

The above architectural sketch is one of the primary use cases used by the second largest GraphQL service provider in the world. I don’t even want to disclose their name, because of security reasons, since the above architectural sketch is basically a direct implementation of the problems I was illuminating in my previous article.

GraphQL is a security disaster – Aista

The service provider have roughly 35,000 stars on GitHub, they have 60 million dollars in VC fundings, and they’re not even the largest service provider in this space. There’s another similar company with 75,000 stars on GitHub, that encourages their users to do the same. And according to a website I saw the other day, there are 88 alternatives to the largest company, and 54 alternative to the second largest company in this domain.

My article wasn’t written for Facebook or GitHub. I have no doubts that both Facebook and GitHub knows how to correctly apply GraphQL. My article was written for the rest of the world. The 98% of software developers applying GraphQL, believing it’s an “easy alternative to HTTP REST and business logic on the server”.

The above use case published by the service provider is for a FinTech company, with 3,500 users. I can only pray to (insert deity of choice) that they’re not PCI compliant. Facts are …

GraphQL is a security disaster

If you need an alternative that’s secure by default, feel free to register a free CRUD API generator cloudlet here.