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

  • Home
  • SEARCH
  • 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 3958482
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:36:53+00:00 2026-05-20T02:36:53+00:00

This is a somewhat subjective question, but I’d like to hear the pros/cons for

  • 0

This is a somewhat subjective question, but I’d like to hear the pros/cons for doing this. I manage an open source project called Quick and Dirty Feed Parser and the objective of the project is to make it as seamless as possible to consume RSS and Atom feeds in .NET.

One of the issues I ran into fairly early on in the development of the project was that some of the feeds I was using as test cases (namely the Hacker News RSS feed) used improperly formatted HTTP headers, and the HttpWebRequest class in .NET 1.1 and up promptly throws an “unsafe header” exception whenever you receive one of these headers in a GET request.

This change was added in order to put a stop to split-response attacks that were raising security issues at the time .NET 1.1 was released.

My issue is thus – I can enable the “useUnsafeHeader” configuration option programmatically, but it does it across ALL HttpWebRequests in that application’s context. I have users who’ve complained about QD Feed Parser being unable to consume valid feeds, and this header issue is why.

Right now I have my library set up in such a way that developers who use it have to enable unsafe header parsing themselves, although most of them aren’t aware that this is the problem and it creates a support overhead for me.

I can simply have Quick and Dirty Feed Parser enable unsafe header parsing by default and force security-concious users to disable it, but I don’t want to open up users who don’t know any better to security attacks either. What’s the best option here?

  • 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-20T02:36:54+00:00Added an answer on May 20, 2026 at 2:36 am

    “Unsafe” is a bit extreme here; I would have named this setting differently. The problem comes up when ill-behaved servers emit headers which don’t follow the HTTP RFC exactly. For example the RFC says that CR characters must be followed by an LF character, so if there’s no LF you’ll get an execption unless you allow “unsafe” headers.

    In practice, many HTTP clients ignore these minor violations in order to talk to as many servers as possible. That’s why your browser or RSS reader never complains about “unsafe” headers. Even if headers are bogus, the .NET client libraries are robust enough that you won’t, for example, crash your server if a malious attacker omits a linefeed. 🙂 So there’s not really a big safety issue here, unless (for example) you do dumb things with HTTP header names like emit them directly into your HTML (which might allow an attacker to inject an XSS attack into your HTML).

    So, as long as you treat HTTP headers as if they’re just as untrustworthy as any other user-submitted data that comes into your application (like query strings, POST data, etc.), then you should be OK allowing “unsafe” headers in your app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that this is somewhat subjective, but I wonder if there is a
I know this is somewhat of a server question, but I wanted to ask
[This question is somewhat related to this question , but the answers are not...]
This may seem like a somewhat contrived example, but I'm left scratching my head.
This is somewhat of a multipart question, but.. I am looking to query a
I am aware that this is somewhat a re-post, but I feel like re-posting
This is somewhat of a follow-up question to this question . Suppose I have
This is somewhat asp.net MVC related only for example purposes but I was hoping
This is a somewhat low-level question. In x86 assembly there are two SSE instructions:
This is a somewhat bizarre question. My objectives are to understand the language design

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.