virtual-labs-archive / digital-logic-design-iiith

Other
3 stars 61 forks source link

Generic Object Injection Sink (security/detect-object-injection) #113

Open BSravanthi opened 5 years ago

BSravanthi commented 5 years ago

Detects variable[key] as a left- or right-hand assignment operand.

//Bad:
variable[key] = value;

Please refer to the following link to fix similar issues. https://app.codacy.com/app/BSravanthi/digital-logic-design-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiU2VjdXJpdHkiXX0seyJpZCI6IkxldmVsIiwidmFsdWVzIjpbbnVsbF19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbMzM0MF19LHsidmFsdWVzIjpbXX1d

ShivaniKomandury commented 5 years ago

Commit id : 89596d7ccbf74faedac8cf35c8904279e0adebc7

Please validate.

SakethMattupalli commented 5 years ago

Valid fix @ShivaniKomandury

snehitharangu commented 5 years ago

Valid fix @ShivaniKomandury

Mani082 commented 5 years ago

Valid fix @ShivaniKomandury