XenoBot Forums - Powered by vBulletin

User Tag List

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: Tibia Auction Market [BETA] - Looking for testers

  1. #21
    King Furpan Furpan's Avatar
    Join Date
    Jul 2012
    Location
    Thais
    Posts
    984
    Mentioned
    267 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    Regardless, it is bad. You are storing world names as a string field in inventory item, which is inefficient. There should be a table of world names with an integer primary key that is used to reference them from the inventory table.

    Also, the BETA panel may just be BETA, but if there is a way for users to select what world their item is on, the flaw will always exist (given your current database structure).
    True, fixed that

  2. #22
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by Furpan View Post
    True, fixed that
    Why can I still use the world name "Balls", then?

    My original proposal meant the worlds table should be read-only. The values in your drop-down should be like 1-n, where 1 is AMERA and n is the last world in the list. Your worlds table should look something like this:

    Code:
    id PRIMARY KEY | name
    1              | Amera
    2              | Antica
    ...            | ...
    n              | Zanera
    The query should look something like this
    Code:
    SELECT * FROM auctions LEFT JOIN worlds ON auctions.worldId = worlds.id WHERE worlds.name NOT NULL and (whatever other criteria here)
    There are 2 major reason to do this:
    1. It reduces your possible attack surface by reducing the amount of data users are allowed to place raw inside your database.
    2. It makes the database more space-efficient, as there will not be duplicate strings for world names all over the place.

  3. #23
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    9. I'm worried about the in-browser pagination. What happens when finished auctions becomes 10k+ auctions? Storing 1000 pages in the browser will be essentially DoSing the end-user's browser.

  4. #24
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    10. I'm not sure what your database structure is, but you should, first and foremost, be hashing and salting passwords that are stored. I've done some timing attacks that show you're _probably_ not doing this. The reason you want to do this is that, in case your database every does get compromised, the hackers wont have direct access to the plain-text passwords of your users. Instead, they'll have to brute-force the hashes.

    https://crackstation.net/hashing-security.htm
    http://php.net/manual/en/faq.passwords.php
    http://www.sitepoint.com/hashing-pas...d-hashing-api/

  5. #25
    Lifetime Subscriber Kociii's Avatar
    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    3,586
    Mentioned
    199 Post(s)
    Tagged
    1 Thread(s)
    @DarkstaR, you got alot of fun dont you?



    Free & Open Teamspeak 3 server for everyone!




    My Spotify List



    My Tibia Life



    My Script Thread

  6. #26
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by Kociii View Post
    @DarkstaR, you got alot of fun dont you?
    i like to break things geeezz

  7. #27
    Lifetime Subscriber Kociii's Avatar
    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    3,586
    Mentioned
    199 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    i like to break things geeezz
    Haha xD



    Free & Open Teamspeak 3 server for everyone!




    My Spotify List



    My Tibia Life



    My Script Thread

  8. #28
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    9. I'm worried about the in-browser pagination. What happens when finished auctions becomes 10k+ auctions? Storing 1000 pages in the browser will be essentially DoSing the end-user's browser.
    Case and point: http://www.tibiatracker.com/deletions

    This site uses the same table library as you and the same pagination. It take ~21 seconds to load just because it needs to pull that shitload of data down and fill the DOM before displaying anything.

  9. #29
    Banned
    Join Date
    Dec 2013
    Posts
    1,092
    Mentioned
    113 Post(s)
    Tagged
    0 Thread(s)
    I was going to try to break something but I think Nick has it covered.


  10. #30
    King Furpan Furpan's Avatar
    Join Date
    Jul 2012
    Location
    Thais
    Posts
    984
    Mentioned
    267 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Pinnicle View Post
    I was going to try to break something but I think Nick has it covered.

    I really appreciate that he broke the site, it helps me fix the flaws :] Keep on trying if you have the time
    I'll try some versions of pagination so it might throw off some errors from time to time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •