Skip to content

fixing qrashTox vulnerability - #736

Open
3907-bh wants to merge 1 commit into
TokTok:masterfrom
3907-bh:master
Open

3907-bh wants to merge 1 commit into
TokTok:masterfrom
3907-bh:master

Conversation

@3907-bh

@3907-bh 3907-bh commented Jul 24, 2026

Copy link
Copy Markdown

Any Tox user can put a victim's qTox client into a state where it segfaults, by sending two or more friend requests. Once the victim accepts or rejects one of the requests, qTox keeps a dangling pointer to a destroyed Accept button. The next time the interface retranslates (the victim changes the display language, or edits their own username), qTox writes through that stale pointer and crashes. The crash is a use-after-free read and write (CWE-416), verified with a debugger backtrace and core dumps. The same primitive is a candidate for controlled exploitation with heap grooming, although this report demonstrates denial of service only.

read https://github.com/3907-bh/qrashTox


This change is Reviewable

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Warning

Build failed. Please check the logs.

@Green-Sky

Copy link
Copy Markdown
Member

It looks like you based your commit on qtox/qtox, not toktok/qtox.

@3907-bh

3907-bh commented Jul 24, 2026

Copy link
Copy Markdown
Author

i did, but the same code is present here so i presume the same vulnerability is present

@Green-Sky

Copy link
Copy Markdown
Member

Also potential security issues should have been reported through the appropriate channels like https://github.com/TokTok/qTox/security/advisories/new .

Though I have to admit that the SECURITY.md is outdated.

@Green-Sky

Copy link
Copy Markdown
Member

i did, but the same code is present here so i presume the same vulnerability is present

Yes, but that still means you have to fix your git history and rebase onto toktok/qtox master.

@3907-bh

3907-bh commented Jul 24, 2026

Copy link
Copy Markdown
Author

yeaaaa, i do agree. my apologies. however, i also forgot about TokTok's version after looking at the official qTox/qTox, then realised this exists, and just thought it be quicker. again, apologies

@3907-bh

3907-bh commented Jul 24, 2026

Copy link
Copy Markdown
Author

i did, but the same code is present here so i presume the same vulnerability is present

Yes, but that still means you have to fix your git history and rebase onto toktok/qtox master.

verify the changes i've made are correct, please. i did what was asked

@Green-Sky

Green-Sky commented Jul 25, 2026

Copy link
Copy Markdown
Member

PR title and commit messages require a certain format, check the Mergable ci job.
Also we require commits to be signed by the author.

@Green-Sky Green-Sky added bug Bug fix for the user, not a fix to a build script P0 Critical priority labels Jul 25, 2026
@Green-Sky Green-Sky added this to the v1.18.6 milestone Jul 25, 2026

This branch had an error being deployed

1 failed deployment
netlify e05d46cb Deployed Jul 24, 2026 by 3907-bh via netlify / deploy #550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug fix for the user, not a fix to a build script P0 Critical priority

Development

Successfully merging this pull request may close these issues.

2 participants