Compare Gruyere with other intentionally vulnerable applications (like DVWA or WebGoat). Let me know which of these would be most useful to you! AI responses may include mistakes. Learn more

Set cookies with SameSite=Strict or SameSite=Lax flags to prevent browsers from sending cookies along with cross-site requests. 3. Directory Traversal and File Inclusion

Gruyere uses Google Datastore (NoSQL), but it teaches the concept of injection via GQL (Google Query Language).

Developed by Google engineers Bruce Leban, Mugdha Bendre, and Parisa Tabriz, Gruyere is a small, fully-functional microblogging application deliberately stuffed with security holes. It serves as a live "hacking dojo" where you can switch into the mindset of a malicious hacker, discover classic vulnerabilities, and learn how to fix them—all in a safe, sandboxed environment.

Path traversal exploits occur when an application accepts user input to construct a file path without sufficient sandboxing, allowing attackers to access unauthorized files on the server. The Exploit

If a logged-in Gruyere user visits the attacker's page, their browser automatically appends their session cookies to the request, deleting their profile without their consent. The Defense

Use ORMs like SQLAlchemy or Sequelize, which typically use prepared statements under the hood. 4. Path Traversal