Giter VIP home page Giter VIP logo

nodejsprototypepollutionlab's Introduction

Prototype Pollution Vulnerability in Node.js

This repository contains a vulnerable code example that demonstrates the prototype pollution vulnerability in Node.js.

Vulnerability Description

The prototype pollution vulnerability allows an attacker to manipulate the prototype of objects, which can lead to unexpected behavior and security issues. In the context of Node.js, the extend function in the vulnerable code example is susceptible to prototype pollution.

By merging objects with user-controlled data, an attacker can pollute the prototype of the target object, leading to potential security breaches.

How to Run the Vulnerable Code

To run the vulnerable code example, follow these steps:

  1. Clone the repository to your local machine.
git clone https://github.com/TheWation/NodeJsPrototypePollutionLab
  1. Run the vulnerable code:
node main.js

This will execute the vulnerable code that showcases the prototype pollution vulnerability using the custom extend function.

  1. Verify the output to observe the impact of the prototype pollution.

Disclaimer

This repository is for educational purposes only. The vulnerable code example is provided to demonstrate the impact of the prototype pollution vulnerability. It is important to address such vulnerabilities and follow secure coding practices in real-world applications.

For more information on the prototype pollution vulnerability and secure coding practices, refer to the official documentation and security resources.

License

NodeJsPrototypePollutionLab is made with โ™ฅ by Wation and it's released under the Apache License 2.0 license.

nodejsprototypepollutionlab's People

Contributors

thewation avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.