Skip to content

Top-Helper message length exploit #648

Closed

Description

@Nxllpointer

Describe the bug
You can easily farm Top-Helper message points by adding thousands of Zero Width Joiners (invisible characters) to your help messages and boost yourself up the Top-Helper list.

Expected behavior
Unwanted characters should not increase the message points

To Reproduce

  1. Go to https://emojipedia.org/zero-width-joiner/ and copy the character
  2. Write a help message and add the character until you reach the message limit
  3. Take a look at the help_channel_messages database table
  4. => The message length is 2000

Screenshots
image
after a few messages

Fix

We can just adjust the value put into the database at TopHelpersMessageListener:

code

to not use just .length(), but ignore any fancy character. It is probably okay if we just count a-zA-Z0-9 or similar.

Activity

  1. added
    bug
    on Oct 21, 2022
  2. self-assigned this
    on Oct 21, 2022
  3. Zabuzard commented on Oct 21, 2022

    @Zabuzard
    Member

    Lmao. Note that, if we detect such exploits, we will warn the user and ignore them for the award.

    The giveaway is a semi-manual process for a reason. But yeah, I am fine with blocking any non a-zA-Z0-9 character for the counter.

  4. Nxllpointer commented on Oct 21, 2022

    @Nxllpointer
    ContributorAuthor

    Already done. I blocked all charachters that arent in the range of 0x20 to 0x7E. https://www.ascii-code.com/

  5. Zabuzard commented on Oct 21, 2022

    @Zabuzard
    Member

    @Nxllpointer please dont remove the tags, thanks

  6. Nxllpointer commented on Oct 21, 2022

    @Nxllpointer
    ContributorAuthor

    Uh ok. So what does help-wanted mean if help isnt needed?

  7. Zabuzard commented on Oct 21, 2022

    @Zabuzard
    Member

    @Nxllpointer help was needed for this. this is a beginner issue. until u assigned urself and fixed it. now its closed, so its not listed anywhere anymore. but for the record, it was a beginner-friendly issue.

  8. Nxllpointer commented on Oct 21, 2022

    @Nxllpointer
    ContributorAuthor

    At the time of removing the tag i was already assigned and had the issue fixed. I would not randomly remove tags of unresolved issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issuehelp wantedpriority: low

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions