The connected account access checklist (image uploads, sign in, and the AI tools wired to your repo)
The short version
Security researchers at Hacktron, working with Claude, walked a chain from a forum's image upload all the way into a company's code. A flaw in the image processing software let them take over the forum. A separate sign in flaw opened employee accounts. One of those accounts had an AI coding agent connected to GitHub, and that connection was enough to open a pull request. They opened a harmless one, stopped, and reported it, and the company fixed it.
No single step in that chain looks like a disaster on its own. An image resizer, a login quirk, a handy integration. The damage comes from how they connect. So the fix is to review your app the same way an attacker reads it: every place a stranger can hand you a file, every way someone signs in, and every account that is allowed to act on your code or your data on its own.
Copy these prompts
Paste them into Claude Code (or any agent that can see your project), in this order. The third one is the one most founders have never run.
1. Find every file a stranger can hand you
List every place in this app where a user or visitor can upload or submit a file: images, avatars, attachments, imports, anything.
For each one tell me: which library or service processes it, which version we pin, whether it runs on our own server or a third party, what file types and sizes we accept, and whether we re-encode images or pass the original through.
Flag any processing library that has not been updated in the last six months, and any upload that is stored or served from the same domain as the app.
Report only. Do not change anything yet.
2. Map how people sign in, and what one login unlocks
Map every way someone can sign in to this app and to the tools we run it on: passwords, magic links, social login, SSO, API keys, staff dashboards, the forum or community tool if we have one.
For each one tell me: whether it has multi factor, how sessions and reset links expire, and which other systems the same identity can reach.
Then tell me the worst case: if one staff account were taken over tomorrow, list everything that account could read, change or deploy.
3. Review every account that can act on your code
List every integration, app, token and AI agent that has access to our code or our data: GitHub apps, OAuth apps, personal access tokens, deploy keys, CI secrets, and AI coding tools connected to our repositories.
For each one tell me: who connected it, which repositories or scopes it can reach, whether it can write, open pull requests or merge, and when it was last used.
Mark anything with write access that nobody on the team uses weekly, and anything connected through a personal account instead of the organisation.
Give me the list of what to revoke or narrow, and do not revoke anything until I confirm.
Why the chain matters more than any link
Security reviews usually go one bug at a time: is this endpoint safe, is this form validated. The Hacktron report is a reminder that an attacker does not need one big bug. They need three small ones that happen to line up.
- The entry. Image processing is one of the oldest ways in. Resizers and converters parse complicated formats, and a flaw in the parser runs on your server with your permissions. A community forum or a help desk is often the least maintained thing a company runs.
- The pivot. Once inside one system, the attacker looks for a way to become a person. A weak spot in sign in, a reset flow, a shared session, is how a forum compromise turns into an employee account.
- The reach. An employee account is only as dangerous as what it is connected to. An AI agent that can open pull requests on a real repository turns "we got into the forum" into "we can propose code to the company".
Cut any one link and the chain breaks. That is the good news: you do not need to fix everything, you need to make sure no path runs all the way through.
What to check in each link
Uploads
- Re-encode images on upload instead of storing the original bytes. That strips most payloads hiding in metadata or malformed headers.
- Keep the processing library pinned and patched. Subscribe to its security advisories.
- Serve user uploads from a separate domain or a storage bucket, never from the app's own origin.
- Treat third party tools you host (forums, wikis, help desks) as part of your app, because an attacker will.
Sign in
- Multi factor on every staff account, including the forum admin and the cloud console.
- Short lived reset links that die after one use.
- One identity should not silently reach every system. Know which logins share sessions.
Connected accounts and AI agents
- Connect tools through the organisation, not a personal account, so leaving staff take their access with them.
- Give an agent the fewest repositories it needs, and read access unless it truly must write.
- Protect the main branch so no single account, human or agent, can merge without a review.
- Review the list quarterly and revoke anything unused.
Steal this for your app
- Write down the chain for your own app: upload, sign in, connected accounts. If you can draw a line from a stranger to your repo, fix one link today.
- Re-encode every uploaded image. It is one line in most image libraries.
- Turn on multi factor for every account that can touch production or code.
- Move every AI tool and GitHub app onto organisation owned access with the narrowest scope.
- Require a review on the main branch, even for your own agents.
Run this on your codebase
Paste this into a Claude session in your repo:
Audit this project for a chained attack, the way an outside researcher would. Report before changing anything:
1. Every place a stranger can upload or submit a file, and the library that processes it, with its version.
2. Every way to sign in, whether each has multi factor, and what a single compromised staff account could reach.
3. Every token, app, integration and AI agent with access to our repositories, with its scopes and whether it can write or open pull requests.
4. Any path you can trace from an anonymous visitor to write access on our code, step by step.
5. The one change that would break the most paths at once, and why.