1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Include external script, how dangerous?

Discussion in 'PHP' started by postcd, May 25, 2015.

  1. #1
    Hello,

    i registered in an beta stage advertising system which want me to add their code to my website:
    define('XY_USER', 'dg6z247h5hj8d9s7gh3l2.54lo5f');
    require_once($_SERVER['DOCUMENT_ROOT'].'/'.XY_USER.'/script.php');
    $xy = new SeolinkClient();
    echo $xy->return_links();

    i want to ask how they can abuse my site if they add some malicious code in their script.php file?

    Can they get my mysql credentials or even hosting account login details? Can they somehow harm my site visitors? Thank you
     
    postcd, May 25, 2015 IP
  2. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #2
    I mean they could basically include anything that they would like if they wanted, so sure, full access to your files and mysql.
     
    Anveto, May 25, 2015 IP
    postcd likes this.