April 4, 2024, midnight | Maxi Contieri

DEV Community dev.to

A great door for hackers



TL;DR: Don't use metaprogramming. It is not that cool






Problems


  • Security


  • Limited Control






Solutions


  1. Use direct calls


  2. Wrap the execution in a primitive and controlled command


  3. Sanitize it






Context

Developers employ the eval() and exec() functions to evaluate arbitrary expressions from strings.


They can be a powerful tool in certain contexts but come with several risks and problems, especially when used with untrusted input or where the code's behavior is not fully controlled or understood. …

beginners can code command context control developers don door expressions functions great hackers problems programming python security solutions strings tool webdev

Social Engineer For Reverse Engineering Exploit Study

@ Independent study | Remote

Security Engineer II- Full stack Java with React

@ JPMorgan Chase & Co. | Hyderabad, Telangana, India

Cybersecurity SecOps

@ GFT Technologies | Mexico City, MX, 11850

Senior Information Security Advisor

@ Sun Life | Sun Life Toronto One York

Contract Special Security Officer (CSSO) - Top Secret Clearance

@ SpaceX | Hawthorne, CA

Early Career Cyber Security Operations Center (SOC) Analyst

@ State Street | Quincy, Massachusetts