Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6154235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:13:48+00:00 2026-05-23T20:13:48+00:00

If I use the http module of nodejs to make a simple http server,

  • 0

If I use the http module of nodejs to make a simple http server, how much validation/checking do I have to do?

Does the module take care of security issues like malformed requests and requests with malicious header values? Does the module ensure that everything follows the http spec, or do I have to do a lot of checking to make sure that my server isn’t easy to crash?

Edit: Let’s say nodejs doesn’t do any real validation, which I’m pretty sure is the case. What do I have to do to make sure my server isn’t easily crashable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:13:50+00:00Added an answer on May 23, 2026 at 8:13 pm

    What is a malicious header value? Node is low level, so a lot of things aren’t checked. But you have to look at those things. But it isn’t like someone can send “execute 0xFA894224” or something. The only holes it’s likely to have are things like allowing malformed request (eg, maybe you might get request.location: "\*\*\* CHINAAA \*\*\*", forgetting to launch a socket close event, or throwing a JavaScript error and gracefully terminating.

    You can always check yourself for these things, or use a try catch block, process.on, etc. Of course, it’s not to say there might not be a buffer overflow or something somewhere, but it is unlikely considering node is built on top of v8, and many of the libraries are pure JavaScript

    Edit:
    How to stop random crashes:

    process.on('uncaughtException',function() {
     /* ignore error */
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTTP Module that I use to clean up the JSON returned
Hello I'm trying to use protected http socks server with socket module as in
Does WCF 4 use an asynchronous HTTP Module/Handler when hosted in IIS6? The question
When building a multi-lingual website (with ASP.NET web forms), I'll use an HTTP module
I tried to use the Http Authentication Digest Scheme with my php (apache module)
In ASP.Net I can use a http handler or module to catch errors. I
i am trying to use http Module to disable textbox of each page. Here
Ruby newbie here. I'm trying to use the Easyjour module ( http://easyjour.rubyforge.org/ ) from
I would like to use the Mail module of Zend Framework. I have extracted
I'm trying to use an http module and corresponding configuration section that I downloaded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.