Upgrade to Pro — share decks privately, control downloads, hide ads and more …

apidays Paris 2024 - Why We Should All Be API H...

apidays Paris 2024 - Why We Should All Be API Hackers, Desz Lamptey, Capital One

Why We Should All Be API Hackers
Desz Lamptey, Lead Software Engineer at Capital One

apidays Paris 2024 - The Future API Stack for Mass Innovation
December 3 - 5, 2024

------

Check out our conferences at https://www.apidays.global/

Do you want to sponsor or talk at one of our conferences?
https://apidays.typeform.com/to/ILJeAaV8

Learn more on APIscene, the global media made by the community for the community:
https://www.apiscene.io

Explore the API ecosystem with the API Landscape:
https://apilandscape.apiscene.io/

Avatar for FOST, powered by apidays

FOST, powered by apidays PRO

December 23, 2024

More Decks by FOST, powered by apidays

Other Decks in Programming

Transcript

  1. Why We Should All Be Hackers * the mindset change

    we all need * Desz Lamptey Lead Software Engineer, Certified Ethical Hacker, One-Day-at-a-Time Dad
  2. Threat Mitigation Follow Best Practices and Standards Use Server-side Validation

    Implement Proper Authorization & Authentication Create a Fast Reaction Strategy Use strong encryption Understand Attack Fundamentals Automate Security Checks Automate security patches & dependency updates Enhance Access Controls Monitor and Log Everything Train on Secure Coding
  3. 1. function calculateApplicableDiscount (basket: BasketModel, req: Request) { 2. if

    (security.discountFromCoupon(basket.coupon)) { 3. const discount = security.discountFromCoupon(basket.coupon) 4. return discount 5. } else if (req.body.couponData) { . . . 6. if (campaign && campaign.validOn < new Date().getTime()){ 7. return campaign.discount 8. } 9. } 10. return 0 11. } 12. const campaign = {5_OFF:{validOn: new Date('Mar 8, 2024 00:00:00 GMT+0100').getTime(), discount: 5}} #validate-coupon