Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pak0s/ea7a80c2614d9cd43cfb8230c65c9fec to your computer and use it in GitHub Desktop.
Save pak0s/ea7a80c2614d9cd43cfb8230c65c9fec to your computer and use it in GitHub Desktop.
1. Remote Code Injection in gps-server.net SAAS CMS (<=3.0)
The writeLog function in fn_common.php in gps-server.net GPS Tracking Software (self hosted) through 3.0 allows remote attackers to inject arbitrary PHP code via a crafted request that is mishandled during admin log viewing, as demonstrated by
<?php system($_GET[cmd]); ?>
in a login request. Each POST request goes through mysql_real_escape_string() function which will add slashes behind quotes so the payload code shouldn't include any quote. The header of the file where code is injected allows only Admin to view the file which makes it less of a RCE. But there is another vulnerability (explained below) which allows an attacker to hijack account hence making the RCE exploitable with 100% success.
2. Admin Account Hijack in gps-server.net SAAS CMS (2.x)
gps-server.net GPS Tracking Software (self hosted) 2.x has a password reset procedure that immediately resets passwords upon an unauthenticated request, and then sends e-mail with a predictable (date-based) password to the admin, which makes it easier for remote attackers to obtain access by predicting this new password. This is related to the use of gmdate for password creation in fn_connect.php.
@pinakin7664
Copy link

i want to this script

@pak0s
Copy link
Author

pak0s commented Nov 30, 2019

Desculpe irmão, eu vi sua resposta tarde. Eu tenho código fonte, mas é vulnerável e, desde o seu SAAS, não tenho o atualizado.

Desculpe irmão, eu vi sua resposta tarde. Eu tenho código fonte, mas é vulnerável e, desde o seu SAAS, não tenho o atualizado.

please contact my whatsapp. +5583996460797

I don't have the code. Sorry

@MuhammadShoaibAhmad
Copy link

if anyone needs gps-server source code
please contact my whatsapp. +923194021317

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