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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:08:03+00:00 2026-05-16T15:08:03+00:00

In our ancient Classic ASP environment, we utilize OWASP to get the password from

  • 0

In our ancient Classic ASP environment, we utilize OWASP to get the password from the request object and encrypt non-alphanumeric characters. This is a first line of defense to preventing sql injection. We use other methods for full sql injection prevention.

The problem is, when we are collecting data to put together an HTTP post message and just grab the password from the user input, OWASP it and send it along. The password is therefore incorrect.

Example: Password freddie$cougar becomes freddie&36;cougar

What we ended up doing was assuming that a 50 character text field was not enough space to do much sql injection and changed the code so we didn’t OWASP the password coming in. This feels a bit scary.

Is their a better way?

The code is written in vbScript.

  • 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-16T15:08:04+00:00Added an answer on May 16, 2026 at 3:08 pm

    Consider moving your SQL statements to stored procedures, and ensure that you don’t use dynamic SQL within those stored procs.

    Dim userPwd = Trim(Request.QueryString("userPwd"))
    '--- Create and append parameter for Password
    Set pwdParameter = cmd.CreateParameter("@UserPassword", ad_nVarChar, adParamInput, 50, userPwd)
    cmd.Parameters.Append pwdParameter
    

    Aside, it’s definitely best to not even store the pwd in your database, but rather a salted hash.

    The method above is preferred, no matter what string you’re sending to your database, as it’ll avoid executing directly as an adhoc statement, and will avoid SQL injection, as long as you’re not using the parameter with dynamic SQL within the stored proc.

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

Sidebar

Related Questions

Our environment: Drupal+MySQL Examining the query log indicates that the following query, originating from
Our application takes text from a web form and sends it via email to
Our team is now beginning to look at jumping from 2.0 to 3.5 and
Our win32 application assembles objects from the data in a number of tables in
We're updating our ancient internal PHP application at work. Right now, we gather extensive
From the should be simple, but... files: Trying to get started with jQuery UI.
Our team is currently using some ported code from an old architecture to a
Our site has a list of games and we get paid everytime someone signs
Our small software shop recently migrated from Subversion to Git, as we programmers found
Our application does some relatively complex stuff, resulting in each request generating somewhere between

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.