Search Unity

[Security - WebGL] Can hacker read data in buffer?

Discussion in 'General Discussion' started by khoaphp, Feb 6, 2022.

  1. khoaphp

    khoaphp

    Joined:
    Sep 12, 2015
    Posts:
    1
    Hi guys, can hacker read data when game is running?

    For example: In game, I create an public array [0,9,6,6,9,0,8,9,0,7]. This script was attached to an object in game.

    I wonder that, if I build this game in WebGL/Andoir/iOS, could hacker read this array?

    Thank you.
     
  2. bobisgod234

    bobisgod234

    Joined:
    Nov 15, 2016
    Posts:
    1,042
    Trivially.
     
  3. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,128
    Anything stored on the user's computer whether in the processor, in memory, or in storage can be read by the user.
     
  4. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,133
  5. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,627
    a WebGL build is entirely downloaded on to the end-user's system, so nothing you do in WebGL can ever be secure from the end-user. Typically, if you need something unhackable, then you need a separate server-side application that your game connects to.