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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:10:30+00:00 2026-05-24T02:10:30+00:00

I am having users both create and connect to a database through a python

  • 0

I am having users both create and connect to a database through a python application,

           dbname = raw_input("Please enter the game name you wish to connect to, or the name of a new game: ")
           db = sqlite3.connect(dbname)

I’m curious: is there any kind of input a potentially malicious user could use to attack the database (providing I have no other vulnerabilities in the other handlers), or to attack the underlying system running python? (I am aware that a user could continue to create an infinite number of databases by running the program over and over, however I can’t think of any other solution than quotas for that).

Thanks in advance!

Travis

  • 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-24T02:10:31+00:00Added an answer on May 24, 2026 at 2:10 am

    They can pass in ":memory", which may or may not have an adverse effect on the system, depending on what your application does.

    They can control transactions (via the isolation_level parameter), which might mess up your program’s interaction with the database.

    I would check user-input against a dictionary of possible database names.

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

Sidebar

Related Questions

I need to create a web application using php, I had many users having
I'm looking at having certain users access one database and other users accessing another
My users are having an intermittent error when using a Windows Forms application built
I'm having some problems with users cheating my online game by using macros to
I've been having trouble getting my ASP.NET application to automatically log users into the
I'm create a Facebook canvas application that will be require extended permissions, for both
In my rails application I am having users module which is dependent on roles
One of my users is having an issue when trying to open an Excel
I've run into problems on numerous occasions of users not having one of the
I have an Events list in sharepoint and need to disallow users from having

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.