None Shall Pass - 500 “None shall pass!” The gatekeeper stands firm, guarding the realm of high privilege. Yet even the strongest magic hides a flaw. Inspect the login flow, study the key's origins, and see if you can walk where no one is meant to tread. No brute force—just the wisdom to find what nobody sees.

Login
<style>
    body {
        font-family: Arial, sans-serif;
        background-color: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
        color: white;
        padding: 1rem; 
        box-sizing: border-box; 
        position: relative;
        overflow: hidden;
    }
    #particles-js {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    h1 {
        text-align: center;
        margin-bottom: 1.5rem; 
        z-index: 1;
        position: relative;
    }
    form {
        background: rgba(0, 0, 0, 0.7); 
        padding: 2rem; 
        border-radius: 0.625rem; 
        box-shadow: 0 0 5rem rgba(0, 0, 0, 0.5); 
        width: 90%; 
        max-width: 400px; 
        position: relative;
        z-index: 1;
    }
    label {
        display: block;
        margin-bottom: 0.625rem; 
    }
    select, input[type="password"], input[type="text"] {
        width: 100%;
        padding: 0.625rem;
        margin-bottom: 1.25rem;
        border-radius: 0.3125rem;
        font-size: 1rem;
        box-sizing: border-box;
        border: 1px solid #ccc;
    }
    button {
        width: 100%;
        padding: 0.625rem; 
        background-color: #4CAF50; 
        color: white;
        border: none;
        border-radius: 0.3125rem; 
        cursor: pointer;
        font-size: 1rem; 
    }
    button:hover {
        background-color: #45a049; 
    }

    @media (max-width: 600px) {
        body {
            padding: 0.5rem; 
        }
        form {
            padding: 1.5rem; 
        }
        h1 {
            font-size: 1.5rem; 
        }
        button {
            font-size: 0.9rem; 
        }
    }
</style>
Select Role: Administrator TCS HackQuester Guest Password Login
<script>
    particlesJS("particles-js", {
        particles: {
            number: {
                value: 200, 
                density: {
                    enable: true,
                    value_area: 800
                }
            },
            color: {
                value: "#4CAF50" 
            },
            shape: {
                type: "circle",
                stroke: {
                    width: 0,
                    color: "#4CAF50"
                },
                polygon: {
                    nb_sides: 5
                },
                image: {
                    src: "img/github.svg",
                    width: 100,
                    height: 100
                }
            },
            opacity: {
                value: 0.5,
                random: false,
                anim: {
                    enable: false,
                    speed: 1,
                    opacity_min: 0.1,
                    sync: false
                }
            },
            size: {
                value: 5,
                random: true,
                anim: {
                    enable: false,
                    speed: 40,
                    size_min: 0.1,
                    sync: false
                }
            },
            line_linked: {
                enable: true,
                distance: 150,
                color: "#4CAF50",
                opacity: 0.4,
                width: 1
            },
            move: {
                enable: true,
                speed: 6,
                direction: "none",
                random: false,
                straight: false,
                out_mode: "out",
                bounce: false,
                attract: {
                    enable: false,
                    rotateX: 600,
                    rotateY: 1200
                }
            }
        },
        interactivity: {
            detect_on: "canvas",
            events: {
                onhover: {
                    enable: true,
                    mode: "repulse"
                },
                onclick: {
                    enable: true,
                    mode: "push"
                },
                resize: true
            },
            modes: {
                grab: {
                    distance: 200,
                    line_linked: {
                        opacity: 1
                    }
                },
                bubble: {
                    distance: 400,
                    size: 40,
                    duration: 2,
                    opacity: 8,
                    speed: 3
                },
                repulse: {
                    distance: 30,
                    duration: 0.4
                },
                push: {
                    particles_nb: 4
                },
                remove: {
                    particles_nb: 2
                }
            }
        },
        retina_detect: true
    });
</script>
http://challenge.tcshackquest.com:22299/ 5 mins to solve this
Dr.Binary
drbinary_run_sandbox

The app is Flask/gunicorn. The hints point to the nobody role ("walk where no one is meant to tread", "what nobody sees"). Let me probe the login flow.

drbinary_run_sandbox
drbinary_run_sandbox

/flag gives 403 — that's the target. Let me examine responses and cookies in detail.

drbinary_run_sandbox

A JWT (RS256) is issued for guest/guest. Let me decode it and check where the key lives.

drbinary_run_sandbox
drbinary_run_sandbox

/key exists (403) — that's "the key's origins". Let me view the guest dashboard fully.

drbinary_run_sandbox

The dashboard leaks a hidden role: questnight, plus a /jwt admin page, and /key serves the RSA public key. Classic RS256→HS256 confusion. Let me forge tokens.

drbinary_run_sandbox

Standard confusions failed. But the /jwt link is only CSS-hidden for guests — let me try it directly, plus key-encoding variants.

drbinary_run_sandbox

/jwt is open to guests — it's a server-side JWT decoder. Let me see its form/JS and find its backend endpoint.

drbinary_run_sandbox

The /jwt decoder is purely client-side. Let me test the server-side /string endpoint for template injection, and probe more routes.

drbinary_run_sandbox

Let me try HS256 confusion with different key encodings, and probe /key variants.

drbinary_run_sandbox
drbinary_run_sandbox

PyJWT-style protections likely block the confusion. Let me inspect the login flow for role handling and decode that favicon — "what nobody sees" might be hidden in plain sight.

drbinary_run_sandbox
drbinary_run_sandbox
drbinary_run_sandbox

The favicon is just a "K" logo. Let me re-check those 500-status routes with a token — they may exist but error only for anonymous users.

drbinary_run_sandbox

Everything unknown is just a 404-styled 500. Key routes: /login, /flag, /key, /jwt, /string. "Study the key's origins" — maybe the key is generated per request. Let me compare /key responses over time.

drbinary_run_sandbox

Let me look closer at failed-login responses for nobody (full headers) and test the label text as password.

drbinary_run_sandbox
drbinary_run_sandbox

POST /key is just the 404 handler. New idea: the login flow might merge arbitrary form fields into the signed JWT payload (mass assignment). Let me test.

drbinary_run_sandbox

No mass-assignment; id is random per login. Let me try kid/jku header tricks and inspect headers more carefully.

drbinary_run_sandbox
drbinary_run_sandbox

Let me probe POST variants of known GET routes and enumerate more paths.

drbinary_run_sandbox
drbinary_run_sandbox

Let me dump the full pages and hunt for hidden elements/comments.

drbinary_run_sandbox

The span stays empty for guests — server fills it for privileged roles. Maybe the key itself is weak. Let me try factoring the modulus (Fermat, small factors) and check factordb.

drbinary_run_sandbox

The key isn't weak. Maybe the source is exposed — let me check .git, app.py, backups.

drbinary_run_sandbox

Server went 503 — I may have tripped rate limiting. Let me check and back off.

drbinary_run_sandbox

While the instance recovers, let me note the plan and retry. The 503 is from the AWS LB (backend down — likely my scan rate or instance expiry). Waiting, then testing LFI params on /key.

drbinary_run_sandbox
drbinary_run_sandbox
[stopped by the user]
You stopped this response.