c++ Generic space filtering exploit prevention

by taxiphone9237   Last Updated November 09, 2018 00:26 AM

so currently I am making a game that has the functionality to grab specific info from the host site. The issue is I am not sure if exploiters could get around my space check (which would let exploiters change header data), Here is my check currently in c++

   char* siteaccess = aaa.get();
    for (size_t i = 0; i < aaa.length(); ++i)
    {
        if (aaa[i] != ' ')
            *siteaccess = aaa[i];
            siteaccess++;

currently I could not bypass the check myself so I think I am safe. But I am also a novice at c++ so I believe there is a way around it. I would like to figure out any potential workarounds before my game goes public, If this can be exploited please provide an example(this will help me fix it). Thanks!

Tags : c++ url whitespace


Answers 1


This check basically will check for U+0020 (white space). There's no way that you can bypass that unless your code possibly had a flaw and added U+0020 to it. Hope this helps!

Arutha RBXL
Arutha RBXL
November 09, 2018 00:25 AM

Related Questions


Updated April 10, 2018 10:26 AM

Updated December 01, 2017 17:26 PM

Updated April 14, 2017 04:26 AM

Updated September 10, 2017 13:26 PM