AlpacaHack Logo

Tag: Fastify

Sign InSign Up

Fastify

No description is available for this tag.

Updated Apr 24, 2026
Fastify Challenges
🍪
minaminao

minaminao

Web
Beginner
183 solves
Panic
ark

ark

Web
140 solves

🍪

SECCON CTF 13 決勝観戦CTF
183 solves
WebBeginner

by

minaminao

minaminao

ある条件を満たすとフラグが得られるようです

import Fastify from "fastify";
import fastifyCookie from "@fastify/cookie";

const fastify = Fastify();
fastify.register(fastifyCookie);

fastify.get("/", async (req, reply) => {
  reply.setCookie('admin', 'false', { path: '/', httpOnly: true });
  if (req.cookies.admin === "true")
    reply.header("X-Flag", process.env.FLAG);
  return "can you get the flag?";
});

fastify.listen({ port: process.env.PORT, host: "0.0.0.0" });

*完全なソースコードは以下からダウンロード可能です。

cookie.tar.gz
descriptionsolveswriteups