vulnerable-node
vulnerable-node copied to clipboard
Tolerably vulnerable
This pull request primarily focuses on two main areas: enhancing the user interface in views/search.ejs and setting up a new Express.js server in vulnerable.js. The most significant changes include the addition of a new heading to display the incoming query parameter in the search results page and the creation of a new server using Express.js, which includes a PostgreSQL connection and a route to fetch user data based on a search parameter.
User Interface Enhancements:
-
views/search.ejs: A new heading has been added to display the incoming query parameter in the search results page. This provides users with a clear indication of the search term they used.
Server Setup and Route Creation:
-
vulnerable.js: A new Express.js server has been set up, which includes the addition of several dependencies such asexpressandbody-parser. A PostgreSQL connection has also been established using thepglibrary. Furthermore, a route has been created to fetch user data based on a search parameter.