Deprecated: Function create_function() is deprecated in /var/www/html/jellyro.com/archive/forums/Sources/Load.php on line 178

Deprecated: Function create_function() is deprecated in /var/www/html/jellyro.com/archive/forums/Sources/Load.php on line 183

Deprecated: Function create_function() is deprecated in /var/www/html/jellyro.com/archive/forums/Sources/Load.php on line 184

Deprecated: Function create_function() is deprecated in /var/www/html/jellyro.com/archive/forums/Sources/Load.php on line 220

Deprecated: Function create_function() is deprecated in /var/www/html/jellyro.com/archive/forums/Sources/Load.php on line 223

Deprecated: Function create_function() is deprecated in /var/www/html/jellyro.com/archive/forums/Sources/Load.php on line 235

Deprecated: Function create_function() is deprecated in /var/www/html/jellyro.com/archive/forums/Sources/Load.php on line 250

Deprecated: Function create_function() is deprecated in /var/www/html/jellyro.com/archive/forums/Sources/Load.php on line 268
Changes to the voting page...

Author Topic: Changes to the voting page...  (Read 1326 times)

Kaeri

  • Yuno Librarian
  • ***
  • Posts: 2309
  • Serious Business.
    • Kaeri is on Facebook! :D
Changes to the voting page...
« on: August 12, 2011, 11:10:24 pm »
At first i just noticed the link font was different, then i realized i wasn't able to "middle click" (scroll button) the links to open all the pages in new tabs (such that the tabs would open "behind" the voting page so i could continue to click each link without my current tab being switched). Also, i couldn't right click the link to give the option to open in a new tab that way.

In fact i couldn't get a right-click menu to pop up anywhere in the gray table (but it worked on other areas of the page). Anyway, the links would only respond to a normal left click, which opened a tab and immediately switched to it. i believe this is normal in most browsers when left-clicking links that would open new pages, but the problem here is that left click is my only option. If i wanted to open all the pages in tabs before i started typing in the captcha stuff, i'd have to keep switching back to the first tab each time.

Not the end of the world, but it's throwing off my groove. I'm guessing it happened due to changes being made to fix the "negative timer issue". I'd just like to know if these particular changes were intentional, and if so, what makes them necessary.
Pax Imperia Elites
I Want YOU! | R> DA
Glowstick Enterprises
Join & Chat | Shop
Glowstick Brigade
Adventure HO~!



Chat with the cool kids!
Facebook | IRC | Teamspeak
this is your world
these are your people
you can live for yourself today
or help build tomorrow
for everyone


tsukaza13

  • I know a Dark Priest, and he's cool.
  • ***
  • Posts: 1093
  • Find me again; kiss me for lonesome folly.
Re: Changes to the voting page...
« Reply #1 on: August 13, 2011, 12:57:47 am »
Yeah, just noticed this; it sucks. :x Change it back, please?
A Tarp is a higher stage of human evolution.
With the body of woman, but the mind of a man... it is nothing short of sheer utter perfection.
Spoiler for Ingame Names:
Ash Wednesday  99/69 High Priestess
Jack Tomato    8x/50 Taekwon Boy
Daughter of the Moon 9x/50 Star Gladiator
.Gabrielle.    8x/5x Lord Knight
HabbaBaloo 7x/4x Champion
Biology Student8x/3x Biochemist
tsukaza13      8x/4x Assassin Cross
Snypa          7x/3x Sniper

Talis

  • Yuno Librarian
  • ***
  • Posts: 2116
  • I am not on staff anymore
Re: Changes to the voting page...
« Reply #2 on: August 13, 2011, 06:41:15 am »
At first i just noticed the link font was different, then i realized i wasn't able to "middle click" (scroll button) the links to open all the pages in new tabs (such that the tabs would open "behind" the voting page so i could continue to click each link without my current tab being switched). Also, i couldn't right click the link to give the option to open in a new tab that way.

In fact i couldn't get a right-click menu to pop up anywhere in the gray table (but it worked on other areas of the page). Anyway, the links would only respond to a normal left click, which opened a tab and immediately switched to it. i believe this is normal in most browsers when left-clicking links that would open new pages, but the problem here is that left click is my only option. If i wanted to open all the pages in tabs before i started typing in the captcha stuff, i'd have to keep switching back to the first tab each time.

Not the end of the world, but it's throwing off my groove. I'm guessing it happened due to changes being made to fix the "negative timer issue". I'd just like to know if these particular changes were intentional, and if so, what makes them necessary.

Thank you for your concern.

This is occuring because I had to employ POST data instead of GET data for the voting system, i.e. each vote link is it's own little HTML formular and the vote link is actually a submit button.

Short of using javascript trickery to replace the submit button with a actual text link, I don't think it can be fixed. If you can dig up any sort of CSS to make the formular behave more like a traditional link, please let me know ! ( I tried to make it look and seem like a link instead of a button but I was unable to find anything that'd allow ctrl right click or middle click. ;x )

As for why the change had to be done: Using GET only in the vote system made it vunerable to a XSS or Cross Site Scripting attack. Noone abused it thankfully but I wanted to fix it before someone does. ( Technical details: Someone could have used a html image tag or even a image tag in the forums with a vote link - everyone who views this vote link would , without noticing, get credited for voting even though they didn't. Because it is set as the url for the picture the browser of people who view it try to load it and boom, the vote goes through. )

Additionally, the vote links are now tokened via the form which enhances security and in addition the SQL queries have been tweaked. All this together fixes the negative timers bug and makes the voting system more stable and secure !

I hope you understand that due to the possibility of a exploit this is a necessity and again - if you find out anything to restore the functionality while at the same time keep it acting as a form submit button I would be very interested in implementing it.
Hi, I am Talis.
I used to work here, but not anymore.
Please keep that in mind that my posts, views and opinions are my own and in no way, shape or form reflect that of, or pertain to the current staff & administration.

“Intellect is invisible to the man who has none”
Arthur Schopenhauer (German Philosopher, 1788-1860)

Mal

  • I know a Dark Priest, and he's cool.
  • ***
  • Posts: 1061
  • White Trash Mother of God
  • Guild: Chode Gaming
Re: Changes to the voting page...
« Reply #3 on: August 13, 2011, 06:54:59 am »
Oooh, came here to make this thread.

but I was unable to find anything that'd allow ctrl right click or middle click. ;x )
I can still ctrl + right click, just not middleclick.
14)Mal

Xia Xue

  • Yuno Librarian
  • ***
  • Posts: 2506
  • しばらく 休み
Re: Changes to the voting page...
« Reply #4 on: August 13, 2011, 07:15:31 am »
there's the date\time below the last voting link =)














imafraidyoulookatathinglongenoughitloosesallofiitsmeanings

rolover

  • Elder of Thanatos
  • ***
  • Posts: 5104
Re: Changes to the voting page...
« Reply #5 on: August 13, 2011, 02:26:53 pm »
messes up my voting a lot ~_~ /sigh for the greater good i guess
Spoiler for stuff:

Item Class : Card
Compound on : Armor
Weight : 1


B>
S>
T>
Soul Ring   [ 0 ]   [Upper Head]   Item ID# 5257 (Soulless_Ring)
A halo and a pair of wings that are floating above a head. The item makes the wearer to look like a spirit that is walking on the earth.
MDEF + 2
Add a 1% chance of auto casting Level 1 Assumptio on the user when the user receives Physical Damage.
[+ Mobbing]
May cause mental retardation and loss of common sense

Kaeri

  • Yuno Librarian
  • ***
  • Posts: 2309
  • Serious Business.
    • Kaeri is on Facebook! :D
Re: Changes to the voting page...
« Reply #6 on: August 13, 2011, 10:38:38 pm »
At first i just noticed the link font was different, then i realized i wasn't able to "middle click" (scroll button) the links to open all the pages in new tabs (such that the tabs would open "behind" the voting page so i could continue to click each link without my current tab being switched). Also, i couldn't right click the link to give the option to open in a new tab that way.

In fact i couldn't get a right-click menu to pop up anywhere in the gray table (but it worked on other areas of the page). Anyway, the links would only respond to a normal left click, which opened a tab and immediately switched to it. i believe this is normal in most browsers when left-clicking links that would open new pages, but the problem here is that left click is my only option. If i wanted to open all the pages in tabs before i started typing in the captcha stuff, i'd have to keep switching back to the first tab each time.

Not the end of the world, but it's throwing off my groove. I'm guessing it happened due to changes being made to fix the "negative timer issue". I'd just like to know if these particular changes were intentional, and if so, what makes them necessary.

Thank you for your concern.

This is occuring because I had to employ POST data instead of GET data for the voting system, i.e. each vote link is it's own little HTML formular and the vote link is actually a submit button.

Short of using javascript trickery to replace the submit button with a actual text link, I don't think it can be fixed. If you can dig up any sort of CSS to make the formular behave more like a traditional link, please let me know ! ( I tried to make it look and seem like a link instead of a button but I was unable to find anything that'd allow ctrl right click or middle click. ;x )

As for why the change had to be done: Using GET only in the vote system made it vunerable to a XSS or Cross Site Scripting attack. Noone abused it thankfully but I wanted to fix it before someone does. ( Technical details: Someone could have used a html image tag or even a image tag in the forums with a vote link - everyone who views this vote link would , without noticing, get credited for voting even though they didn't. Because it is set as the url for the picture the browser of people who view it try to load it and boom, the vote goes through. )

Additionally, the vote links are now tokened via the form which enhances security and in addition the SQL queries have been tweaked. All this together fixes the negative timers bug and makes the voting system more stable and secure !

I hope you understand that due to the possibility of a exploit this is a necessity and again - if you find out anything to restore the functionality while at the same time keep it acting as a form submit button I would be very interested in implementing it.

Nyoro~n... This is a reminder that my web developing skills need more cowbell. That, and i simply have no time to research a solution. BUT! If free time should present itself, this is highly relevant to my interests and i may take the opportunity to learn a thing or two. Meanwhile, i guess i'll just have to tell my OCD to STFU. ^^;
« Last Edit: August 13, 2011, 10:40:25 pm by Kaeri »
Pax Imperia Elites
I Want YOU! | R> DA
Glowstick Enterprises
Join & Chat | Shop
Glowstick Brigade
Adventure HO~!



Chat with the cool kids!
Facebook | IRC | Teamspeak
this is your world
these are your people
you can live for yourself today
or help build tomorrow
for everyone


DeePee

  • Earl of Vermillion
  • ***
  • Posts: 1730
Re: Changes to the voting page...
« Reply #7 on: August 14, 2011, 07:40:23 am »
As for why the change had to be done: Using GET only in the vote system made it vunerable to a XSS or Cross Site Scripting attack. Noone abused it thankfully but I wanted to fix it before someone does. ( Technical details: Someone could have used a html image tag or even a image tag in the forums with a vote link - everyone who views this vote link would , without noticing, get credited for voting even though they didn't. Because it is set as the url for the picture the browser of people who view it try to load it and boom, the vote goes through. )

Couldn't you set the voting links to only work from the correct referring page?

Talis

  • Yuno Librarian
  • ***
  • Posts: 2116
  • I am not on staff anymore
Re: Changes to the voting page...
« Reply #8 on: August 14, 2011, 05:02:05 pm »
As for why the change had to be done: Using GET only in the vote system made it vunerable to a XSS or Cross Site Scripting attack. Noone abused it thankfully but I wanted to fix it before someone does. ( Technical details: Someone could have used a html image tag or even a image tag in the forums with a vote link - everyone who views this vote link would , without noticing, get credited for voting even though they didn't. Because it is set as the url for the picture the browser of people who view it try to load it and boom, the vote goes through. )

Couldn't you set the voting links to only work from the correct referring page?

Referring page is not something set server-side but rather client-side. Therefore, it's easy to fake or manipulate. Additionally there are some browsers ( very few, but they still exist ), which don't even set a referrer.
In HTML 5 it will also become a standard to be able to disable the Referrer entirely. So in short the HTTP referer is not something I rely on anywhere in my coding. It does counter the XSS attack, but the downsides are just too pronounced. We are still looking into using javascript to just replace the buttons anyway.
Hi, I am Talis.
I used to work here, but not anymore.
Please keep that in mind that my posts, views and opinions are my own and in no way, shape or form reflect that of, or pertain to the current staff & administration.

“Intellect is invisible to the man who has none”
Arthur Schopenhauer (German Philosopher, 1788-1860)