Skip to content

Instantly share code, notes, and snippets.

View arkark's full-sized avatar
🔏
🚩

Takeshi Kaneko arkark

🔏
🚩
View GitHub Profile
@arkark
arkark / exploit.py
Created April 27, 2023 16:12
ångstromCTF 2023 - web/filestore
# ångstromCTF 2023 - web/filestore
# Solution: just bruteforce for uniqid()
import httpx
import subprocess
from concurrent.futures import ThreadPoolExecutor
# BASE_URL = "http://localhost:3000"
BASE_URL = "https://filestore.web.actf.co"
@arkark
arkark / vm2_3.9.17_sandbox_escape.md
Last active January 16, 2024 20:48
Sandbox Escape in [email protected] - CVE-2023-32314

Sandbox Escape in [email protected]

A sandbox escape vulnerability exists in vm2 for versions up to 3.9.17. It abuses an unexpected creation of a host object based on the specification of Proxy, and allows RCE via Function in the host context.

Impact

A threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox.

PoC

@arkark
arkark / test.js
Last active May 19, 2023 08:50
PoC for breaking console.log in [email protected] - CVE-2023-32313
const { VM } = require("vm2");
const vm = new VM();
const code = `
let proxiedInspect;
const source = new Proxy(() => {}, {
get: function (target, prop, receiver) {
if (prop === Symbol.for("nodejs.util.inspect.custom")) {
// https://github.com/nodejs/node/blob/v20.1.0/lib/internal/util/inspect.js#L805-L811
@arkark
arkark / exploit.js
Last active June 12, 2023 03:44
SEETF 2023 - Web/Mandatory Notes Challenge
/*
SEETF 2023 - Web/Mandatory Notes Challenge - 4 solves / 496 points
* ctftime: https://ctftime.org/event/1828
Solution: XS-Leak with URL length limits in Google Chrome. I used a very long authority part to make the oracle.
*/
@arkark
arkark / README.md
Last active July 26, 2023 07:44
Google CTF 2023 - web/Biohazard
@arkark
arkark / solution.md
Last active July 31, 2023 19:27
corCTF 2023 - web/leakynote
@arkark
arkark / README.md
Last active August 29, 2023 13:55
intigriti / Challenge 0823 by huli
@arkark
arkark / README.md
Last active June 13, 2024 16:48
Balsn CTF 2023 - [web] SaaS, 1linenginx
@arkark
arkark / README.md
Last active November 5, 2023 12:08
TSG CTF 2023 - misc/Functionless
@arkark
arkark / README.md
Last active December 31, 2023 07:42
ASIS CTF Finals 2023