The application also exposed useful client-side logic in:
1
/static/app.js
That JavaScript file contained the public key needed for token forging. At first, the forged token still did not grant access because I missed one important detail in the frontend auth flow: the token had to be placed in session storage as auth_token.
1
sessionStorage.setItem("auth_token", token);
Once the forged JWT was stored in the expected place, the application accepted it.
Initial Access
The application revealed an encryption key:
1
D3pl0y_$$H_Now42!
Using that key, I was able to authenticate over SSH as svc-deploy.
1
ssh svc-deploy@10.129.244.220
Privilege Escalation
After logging in, group enumeration showed that svc-deploy was a member of the deployers group:
1
groups
1
deployers
Files owned by the deployers group revealed a custom SSH certificate setup: