CVE-2026-107181 Proof Of Concept for telegram Desktop account take over in windows
telegram-cve-2026-107181-pocA research PoC examining unsafe deep-link handling and local-file exposure risks.
Research scope: controlled, authorized testing only. The current instruction-file defaults refer to sensitive Telegram session artifacts. Do not test against a real account or another person's device.
| Field | Details |
|---|---|
| Identifier | CVE-2026-107181 |
| Product | Telegram Desktop |
| Technical class | IPC record-separator injection |
| Reported impact | Arbitrary local-file read/exfiltration; potential account takeover |
| User interaction | A user must open a crafted link |
| Affected versions reported by the research | Through 7.2.8 |
| Fixed version reported by the research | 7.2.9 |
| Language | JavaScript / Node.js |
| Runtime | Node.js 18+ |
Verify affected-version ranges and CVE status against the authoritative record and vendor release history before citing them in a report.
The exploit chain is sometimes loosely described as “RCE,” but the demonstrated impact is more precisely IPC command injection leading to arbitrary file read and data exfiltration, with potential account takeover.
That is a serious vulnerability, but it is not the same as demonstrating arbitrary native code execution or an operating-system shell on the victim's machine. In research notes, describe the demonstrated class and impact rather than relying on the repository name.
The following is a high-level analysis flow, not an exploit recipe:
flowchart TD
A["External link"] --> B["Telegram Desktop URI handling"]
B --> C["Single-instance IPC parsing"]
C --> D["Unexpected record interpretation"]
D --> E["Legacy file-handling path"]
E --> F["Potential local-file exposure"]
F --> G["Potential account takeover if session material is exposed"]
classDef entry fill:#172554,stroke:#60a5fa,color:#eff6ff
classDef risk fill:#3f1d2e,stroke:#fb7185,color:#fff1f2
class A,B,C entry
class D,E,F,G risk
The key lesson is the combination of an input-parsing flaw and a sensitive internal operation reachable from that input path. Analyze the parts separately and validate only with harmless fixtures in an isolated lab.
.
├── bin/
│ └── craft.js
├── scripts/
│ └── generate-instructions.js
├── samples/
├── src/
│ ├── bot.js
│ ├── config.js
│ ├── instructions.js
│ ├── payload.js
│ └── server.js
├── test/
│ └── payload.test.js
├── output/ # generated local files; keep out of Git
├── loot/ # received files; may contain sensitive data
├── server.js # application entry point
├── package.json
└── README.md
Review server routes, bot integration, filesystem writes, and generated instruction contents before running any component. The tree describes the code layout; it is not a recommendation to enable every component.
Verify your local tools:
node --version
npm --version
git --version
Clone your own repository. Replace the URL and directory placeholders with the actual values for your GitHub repository:
git clone https://github.com/00nx/telegram-account-takeover-poc.git
cd telegram-account-takeover-poc
npm install
For an initial, non-invasive review, inspect the available scripts and run the test suite:
npm run
npm test
The current server includes a crafted-link route, file-receiving routes, and an optional Telegram Bot API bridge. The current instruction generator also defines sensitive session-file targets. Do not run the server or generate/deploy those instructions against a real Telegram profile.
For safe experimentation, first replace the default targets with harmless synthetic marker files, use a test-only destination, and review or disable network/file-transfer handlers that are not needed. Keep the test isolated and do not expose it to the public internet.
The uploaded files reviewed for this README did not include a guaranteed .env.example; check the repository contents before copying one rather than assuming it exists.
The source currently defines 3 default instruction entries. The default configured filenames are:
instructions1.txtinstructions2.txtinstructions3.txtThe generator writes one file for each configured entry. The current default entries point to Telegram session-related files, so these are not harmless sample targets. The generated content also depends on local configuration, including CHANNEL_ID and TDATA_PREFIX.
For safety, this README does not provide a turnkey command sequence for generating and deploying the current session-targeting instruction files. For a benign lab demo, change the entries to synthetic files first, then inspect the generated output before use. Never commit generated files, tokens, destination IDs, or captured artifacts.
The package.json defines these npm scripts:
| Command | Purpose | Caution |
|---|---|---|
npm test | Runs the Node.js test suite | Recommended first step for code review |
npm run | Lists available npm scripts | Useful for script discovery |
npm run start | Starts the Express application | Starts active routes; review and isolate first |
npm run instructions | Generates instruction files | Current defaults target sensitive session artifacts |
npm run craft | Prints a crafted protocol payload | Review implementation; do not use against others |
These commands are documented for auditability, not as a recommendation to run potentially sensitive functionality.
A useful research report should capture:
Passing repository tests validates only the code paths covered by those tests. It does not establish that a live Telegram Desktop build is vulnerable.