Search

Escape - Application Security & Offensive Security Blog

Explore practical offensive and application security insights covering web application testing, emerging AI cybersecurity research, API and GraphQL security, and advanced testing techniques.
GraphQL Cyclic Queries and Depth Limiting

GraphQL Vulnerability

GraphQL Cyclic Queries and Depth Limiting

The relational aspect of GraphQL can be a vulnerability exploited by running deep and cyclic queries causing your API to crawl under the load and crash. That's a Denial of Service. Learn how it works and how you can protect your API!

Achraf Ait Sidi Hammou
SQL Injection in GraphQL

GraphQL Vulnerability

SQL Injection in GraphQL

You receive a call in the middle of the night from the SRE team: All production data has been deleted from your company's various relational databases. Many of the company's internal services are therefore down. You absolutely need to fix the problem immediately and identify the problem. Once you log into the company's system you find that much of the information in your databases has been lost. Fortunately, you have a daily data backup so you can quickly restore the database to its previous

Achraf Ait Sidi Hammou
File Inclusion and Directory Traversal in GraphQL

GraphQL Vulnerability

File Inclusion and Directory Traversal in GraphQL

Back at the office, you try to connect to one of your application's servers. But for some reason, your account is no longer granted access. Anyway. You have a backup so you can restore it to a previous state in a minute. Still, you have to figure out what happened so it doesn't happen again. From the activity logs, it looks like you changed your user's password on this machine yourself but from an unusual address. Of course, you did not... That means someone had access to your credentials fo

Achraf Ait Sidi Hammou
When GraphQL field suggestions become a Security Issue

GraphQL Vulnerability

When GraphQL field suggestions become a Security Issue

GraphQL offers an amazing developer experience. But the same features that help you in development, can disclose critical information to cyberattacks in production. Learn how you can fix this vulnerability.

Achraf Ait Sidi Hammou
How to prevent data leaks with HTTPS

GraphQL Vulnerability

How to prevent data leaks with HTTPS

HTTP is the text protocol that has been running the web, but its upgraded version HTTPS should always be preferred to avoid data leaks. Read more to understand the risk and how you can implement the security fix in your GraphQL framework of choice.

Achraf Ait Sidi Hammou
Hacking GraphQL Playground

AppSec

Hacking GraphQL Playground

GraphQL Playground has had a known XSS security issue since 2020. We give 2 very concrete scenarios to show you how it could unfold if it were to be exploited in your organization.

Achraf Ait Sidi Hammou
Complying with GDPR requirements for SaaS startups

Startup Security

Complying with GDPR requirements for SaaS startups

Many SaaS startups fail to understand the importance of the EU’s new set of rules concerning their citizens' personal data, and some paid a hefty price. Read along to understand the what, why and how of GDPR compliance.

Irina
Learn GraphQL in 8 simple steps

Tutorial

Learn GraphQL in 8 simple steps

The adoption of GraphQL is growing like crazy. But the learning curve is steep and getting started can be overwhelming. Here's our 8-step roadmap to ship production-ready APIs

Achraf Ait Sidi Hammou
GraphQL Error Handling Best Practices for Security

Best Practices

GraphQL Error Handling Best Practices for Security

Error messages in GraphQL are rarely seen as a security concern, yet they should. The risk? Leaking information and data! Learn more about GraphQL errors and how to handle them.

Achraf Ait Sidi Hammou
Demeter's Hymn to Cybersecurity: Consequences of Cyberattacks on Scale-Ups

Startup Security

Demeter's Hymn to Cybersecurity: Consequences of Cyberattacks on Scale-Ups

How many entrepreneurs feel a filial connection with their business, such as Demeter’s passion for Persephone? If Hades abducted Persephone on his golden chariot drawn by immortal horses, the infants of start-up founders are threatened by a more nebulous danger: cyberattacks.

Escape - Offensive Security
Building a type-safe Fullstack Application with GraphQL codegen

Tutorial

Building a type-safe Fullstack Application with GraphQL codegen

There are two approaches to defining your schema in GraphQL: schema-first and code-first. When using Typescript, you might find yourself having to write types again and again. Enters GraphQL codegen: your schema file becomes the single source of truth.

Achraf Ait Sidi Hammou
SaaS Startup Security 101 - A quick guide for building secure SaaS

Startup Security

SaaS Startup Security 101 - A quick guide for building secure SaaS

Why should you care about security in a SaaS Startup? 1) To avoid expensive Data Leaks 🥷 A common misconception among startups is that only big corporations, or large scale-ups, are targeted by cyberattacks. Unfortunately, startups of all sizes can be targeted: from the 139 Million records leaked by Canva in 2020 to the 70 000 records leaked by start-up Mercato in 2019 before its Series A. According to a study by IBM, the average cost of a leak is 150$ per record. One can quickly imagine t

Tristan Kalos
GraphQL Security: 9 Best Practices You Need to Know

AppSec

GraphQL Security: 9 Best Practices You Need to Know

GraphQL has no security by default. All doors are open for the most basic attacks. Read more to learn about the exact threats and some simple strategies you can implement to get your users' data under lock and key 🔐

Achraf Ait Sidi Hammou
How to Test your GraphQL Endpoints

Tutorial

How to Test your GraphQL Endpoints

Testing your GraphQL API is critical to ensure that your software's business logic is running as expected. Tests will reveal bugs and vulnerabilities before they make it to production. In this tutorial, we go through the practical steps to write unit and integration tests for your GraphQL API.

Achraf Ait Sidi Hammou
Top 7 DevSecOps Best Practices

DevSecOps

Top 7 DevSecOps Best Practices

DevSecOps aims at integrating security inside the development process. It can be hard to know where to start. In this article, learn the best practices to implement DevSecOps in your engineering teams.

Tristan Kalos
DevSecOps 101 Part 4: Scanning Docker Images With Trivy

DevSecOps

DevSecOps 101 Part 4: Scanning Docker Images With Trivy

This last part of the DevSecOps 101 series shows you how to scan your Docker images using Trivy, an open-source security scanner to find misconfigurations and vulnerabilities.

Tristan Kalos
DevSecOps 101 Part 3: Scanning Live Web Applications with Nuclei scanner

DevSecOps

DevSecOps 101 Part 3: Scanning Live Web Applications with Nuclei scanner

This article is part of a series about integrating security tooling in the development process. You can find the rest of the articles here: * Part 1: Detecting Insecure Dependencies (SCA) * Part 2: Detecting Insecure Source Code (SAST) * Part 4: Scanning Docker Images With Trivy Note: This tutorial is based on the repository resulting from part 2. If you haven't achieved it yet, no worries! You can directly fetch the result from Github. If you already have done the two first parts of the tu

Tristan Kalos
Introducing 🪝  Mookme 🪝, a git hook manager for monorepos

Open Source

Introducing 🪝 Mookme 🪝, a git hook manager for monorepos

Ever had troubles managing your git hooks in a monorepository ? We did too, so we created Mookme to solve our problems. Here is a git hook manager for dealing with different projects and languages, automated filtering, ease of configuration and setup.

Maxence Lecanu