Prototype pollution
Në shqip: Ndotja e prototipit
ShpjegimiSQ
Në JavaScript, nëse bashkon objekte nga përdoruesi pa kontroll, ai mund të dërgojë {"__proto__": {"isAdmin": true}} dhe çdo objekt në aplikacion merr isAdmin. Përdor Object.create(null) ose valido çelësat.
EnglishEN
In JavaScript, if you merge user-supplied objects without checks, they can send {"__proto__": {"isAdmin": true}} and every object in the app gets isAdmin. Use Object.create(null) or validate keys.
Si ta mendosh
Si të ndryshosh rregulloren e shkollës duke shkruar në fletoren e një nxënësi.
Lexoje në anglisht
Like changing the school rules by writing in one student's notebook.