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 5948563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:07:31+00:00 2026-05-22T17:07:31+00:00

Every text field in this current project is just normal plane text without ubb

  • 0

Every text field in this current project is just normal plane text without ubb or html tags.
However it must be unicode so an array with characters which are supported isn’t optimal i guess.

I know there are a lot of dedicated classes for xss detection, however don’t all xss include these 2 characters:

The char <

<
%3C
&lt
&#60;
&60;
&#x3C;
PA==

The char ;

;
%3B
&#x3B;
&#59
Ow==
&59;

If i check all user input (get, post, cookie) for the characters in the codeblocks above then everything should be 100% safe?
The project isn’t running on mysql, its using cassandra so mysql injection shouldn’t be a problem.

I’m sure i’m forgetting something but i don’t know what…
Or is it really so easy to build 100% safe apps when the userinput is plane text?

Edit:
List are both a little longer, found one for the first char here:
http://ha.ckers.org/xss.html

 <
    %3C
    &lt
    &lt;
    &LT
    &LT;
    &#60
    &#060
    &#0060
    &#00060
    &#000060
    &#0000060
    &#60;
    &#060;
    &#0060;
    &#00060;
    &#000060;
    &#0000060;
    &#x3c
    &#x03c
    &#x003c
    &#x0003c
    &#x00003c
    &#x000003c
    &#x3c;
    &#x03c;
    &#x003c;
    &#x0003c;
    &#x00003c;
    &#x000003c;
    &#X3c
    &#X03c
    &#X003c
    &#X0003c
    &#X00003c
    &#X000003c
    &#X3c;
    &#X03c;
    &#X003c;
    &#X0003c;
    &#X00003c;
    &#X000003c;
    &#x3C
    &#x03C
    &#x003C
    &#x0003C
    &#x00003C
    &#x000003C
    &#x3C;
    &#x03C;
    &#x003C;
    &#x0003C;
    &#x00003C;
    &#x000003C;
    &#X3C
    &#X03C
    &#X003C
    &#X0003C
    &#X00003C
    &#X000003C
    &#X3C;
    &#X03C;
    &#X003C;
    &#X0003C;
    &#X00003C;
    &#X000003C;
    \x3c
    \x3C
    \u003c
    \u003C
  • 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-22T17:07:31+00:00Added an answer on May 22, 2026 at 5:07 pm

    There is no point trying to blanket-forbid “evil” characters in input, and even less point trying to forbid versions encoded in various different forms. You will false-positive and block valid input, whilst not protecting yourself from every possible form of injection hole. I’m not sure what kind of attack you’re trying to prevent by banning Ow==
    but not, say, & or ".

    The correct way to stop HTML-injection is to call htmlspecialchars() on any text string being output into an HTML page. The correct way to stop URL-component-injection is to call rawurlencode() on text strings being output into a URL. The correct way to stop SQL-injection is to call the relevant DB escaping function (eg mysql_real_escape_chars()) on any text being output into an SQL string literal.

    And so on, for every different for of escaping you might come across. The point is, this is an output-level function that has to be applied as and when you put text into a new context, using the right function for the type of context you have. It’s not something you can do once at the input stage and then forget about, because you don’t know at the input stage whether the text you’re handling is going to end up in an SQL literal, an HTML page, a JavaScript string literal, a URL parameter, or what.

    That’s not to say input-stage validation is useless; you will want it to make sure a submitted field that’s supposed to be a number does actually look like a number, or a date a date, or whatever. But input validation is not a solution to output-escaping problems like the HTML-injection issue that causes most XSS. To make that work, you’d have to ban pretty much all punctuation, which would be pretty user-hostile.

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

Sidebar

Related Questions

Every so often when I'm debugging, I get this message in nice brown text
I need to change a text field every time values in an array is
I check for focus on a text field with this: if ($('#title').is(:focus)) <input type=text
My current code that i use is this: <script type=text/javascript> $(document).ready(function(){ $('#on_holiday').trigger('click'); }); </script>
So, I have this problem that when I word_wrap the text field. But when
I'm trying to get text from a text field but every time I run
In a web page,i want to get every visible text in a textnode.I don't
We have an enterprise web application where every bit of text in the system
Every time I start Emacs I see a page of help text and a
Every month, 4 or 5 text files are created. The data in the files

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.