Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2016, 02:36 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,501
Abronsyth is on a distinguished road
Default Users able to give themselves cash or edit cost of items

Resolved

I don't have much info on this yet, but someone informed me that it's possible for a user to press Shift+F12 and click on their currency amount and then modify it.

Does anyone know how this is possible, and how I can prevent this form of cheating?
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 02-18-2016 at 02:47 PM.
Reply With Quote
  #2  
Old 01-20-2016, 02:59 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,100
Hall of Famer is on a distinguished road
Default

oh this... I've done a lot to prevent such behavior from happening, such as in breeding, pound and other scripts when users can cheat by manipulating form values, but looks like I left out this one.

What you can do is to validate the price data with database stored value, if they dont match, clearly the user cheated and you can ban the user for cheating. Or you can just use the database stored price value. I will take a look into the shop class and see what may have caused this.

Edit: After browsing the class files I actually dont see how users can cheat since the price data is pulled from database, not from user input. Can you tell me which page the cheating occurs? I will investigate from there then.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 01-20-2016, 03:14 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,501
Abronsyth is on a distinguished road
Default

I'm hoping the user who reported this to me will actually tell me the username of the one who cheated this way...I'm not sure which value to compare in the database in order to tell?

Now, if I press F12 and change what the amount of currency appears as, it changes how it looks on that particular page, but does not actually change it in the database, so the user only thinks they got away with something, when if fact it does nothing at all.

I'm going to see if the user can provide more information and try to get back to this.
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #4  
Old 01-20-2016, 03:36 PM
SapphirePhoenix's Avatar
SapphirePhoenix SapphirePhoenix is offline
Adoptable Site Owner
 
Join Date: Nov 2015
Location: Australia
Posts: 81
Gender: Female
Credits: 8,295
SapphirePhoenix is on a distinguished road
Default

Yes, it doesn't actually save. This can be done on lots of other sites as well.
Reply With Quote
  #5  
Old 01-20-2016, 03:36 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,100
Hall of Famer is on a distinguished road
Default

Yeah, thats my thought too. I can change the look of the page by using inspect element, but it wont change the internal database value. Perhaps the user was mistaken?
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #6  
Old 01-20-2016, 04:45 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,501
Abronsyth is on a distinguished road
Default

HoF, I'd have to say so after I took a look at things. I'm assuming that one user was bragging about the cheat they discovered, but didn't realize that it wasn't actually a cheat.

Apologies for the false alarm, but I am very relieved it is a false alarm!
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #7  
Old 01-20-2016, 08:38 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,438
Kyttias is on a distinguished road
Default

This isn't a problem, BUT if they were to modify other data, especially that in forms, it CAN cause issues. For example, I reported this bug last year. By simply right-clicking and inspecting the quantity field element on the shop page, a user can change the item name field client side and buy items that don't belong to that shop - or any shop, for that matter - so long as they know the item's name. Therefore, validation is necessary to confirm that the item does belong in the shop. I supplied a fix while reporting the bug.

You really don't want users buying out of season items or ones that aren't sold in shops. However, the cost of the item is, luckily, cosmetic only. They can attempt to change it, but the framework knows better and will still charge them the proper amount.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 01-20-2016 at 08:41 PM.
Reply With Quote
  #8  
Old 01-21-2016, 01:08 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,100
Hall of Famer is on a distinguished road
Default

Oh yeah I remember it from Kyttias, the only things user can manipulate are the item and and quantity. There's little point to cheat with item quantity, but itemname can be a problem. Thanks for providing a fix Kyttias, and I hope you all look into it if you use it's shop system.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:10 PM.

Currently Active Users: 9794 (0 members and 9794 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636