rasqual
08-19-2005, 09:12 AM
Mickey -
I was very evil tonight. But I found a definite bug.
It's easily possible to use other people's armies to soften up an enemy.
Here's what I did.
First, I added some armies, and noted the first "army number." I hadn't added any armies for a while, so I inferred that a slightly lower army number would belong to someone else.
Second, I used a bookmarklet to change the http POST method on your attack form to a http GET method. Here's the bookmarklet:
javascript:(function(){var x,i; x = document.forms; for (i = 0; i < x.length; ++i) x[i].method="get"; alert("Changed " + x.length + " forms to use the GET method. After submitting a form from this page, you should be able to bookmark the result."); })();
Third, I did an attack (on you) with one of my own armies, which let me see the URL for the http GET. I then changed the URL to use a different army number, and attacked you again. This resulted in someone else's army attacking you.
I did this twice, to confirm the numbers. Here was my first run, using army 1600:
Attacker size: 100 troops
Defender size: 40 troops
[...]
Defending army killed (19).
Attacker size: 32 troops
Defender size: 100 troops
[...]
Attacking army killed (Nic60264).
And here was my second, using army 1550:
Attacker size: 100 troops
Defender size: 93 troops
[...]
Defending army killed (20).
Attacker size: 90 troops
Defender size: 100 troops
[...]
Defending army killed (21).
Attacker size: 90 troops
Defender size: 100 troops
[...]
Attacking army killed (Thalidon35495).
I figured -- and I hope I figured correctly -- that you could restore the lost armies to yourself and to these other players. If not, I owe 'em (and you) when it comes time to trade assets.
I confirmed that my own troop strengths didn't change at all.
Yikes! This one's weird. I hit refresh by mistake, effectively pitting the killed 1550 army against you again. I came up with this:
Attacker size: troops
Defender size: 31 troops
Defending army lost 30 troops.
Attacking army lost 17 troops.
Attacking army killed ().
Incredulous, I hit refresh yet again, and came up with this:
Attacker size: troops
Defender size: 1 troops
Defending army lost 47 troops.
Defending army killed (22).
Attacker size: troops
Defender size: 100 troops
Attacking army lost 31 troops.
Attacking army killed ().
Not good! It looks as if some kind of army wraith retained enough potency to do a number on your troops. Something is VERY funky there.
HTH. Sorry for the mess.
I was very evil tonight. But I found a definite bug.
It's easily possible to use other people's armies to soften up an enemy.
Here's what I did.
First, I added some armies, and noted the first "army number." I hadn't added any armies for a while, so I inferred that a slightly lower army number would belong to someone else.
Second, I used a bookmarklet to change the http POST method on your attack form to a http GET method. Here's the bookmarklet:
javascript:(function(){var x,i; x = document.forms; for (i = 0; i < x.length; ++i) x[i].method="get"; alert("Changed " + x.length + " forms to use the GET method. After submitting a form from this page, you should be able to bookmark the result."); })();
Third, I did an attack (on you) with one of my own armies, which let me see the URL for the http GET. I then changed the URL to use a different army number, and attacked you again. This resulted in someone else's army attacking you.
I did this twice, to confirm the numbers. Here was my first run, using army 1600:
Attacker size: 100 troops
Defender size: 40 troops
[...]
Defending army killed (19).
Attacker size: 32 troops
Defender size: 100 troops
[...]
Attacking army killed (Nic60264).
And here was my second, using army 1550:
Attacker size: 100 troops
Defender size: 93 troops
[...]
Defending army killed (20).
Attacker size: 90 troops
Defender size: 100 troops
[...]
Defending army killed (21).
Attacker size: 90 troops
Defender size: 100 troops
[...]
Attacking army killed (Thalidon35495).
I figured -- and I hope I figured correctly -- that you could restore the lost armies to yourself and to these other players. If not, I owe 'em (and you) when it comes time to trade assets.
I confirmed that my own troop strengths didn't change at all.
Yikes! This one's weird. I hit refresh by mistake, effectively pitting the killed 1550 army against you again. I came up with this:
Attacker size: troops
Defender size: 31 troops
Defending army lost 30 troops.
Attacking army lost 17 troops.
Attacking army killed ().
Incredulous, I hit refresh yet again, and came up with this:
Attacker size: troops
Defender size: 1 troops
Defending army lost 47 troops.
Defending army killed (22).
Attacker size: troops
Defender size: 100 troops
Attacking army lost 31 troops.
Attacking army killed ().
Not good! It looks as if some kind of army wraith retained enough potency to do a number on your troops. Something is VERY funky there.
HTH. Sorry for the mess.