GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Register Server: an arbitrary SQL query can be fired while setting the role · Issue #6253 · pgadmin-org/pgadmin4

Register Server: an arbitrary SQL query can be fired while setting the role #6253

New issue
Copy link
New issue
Copy link
Closed
Closed
Register Server: an arbitrary SQL query can be fired while setting the role#6253
Copy link
Assignees
FaharAbbasRizvi
Labels
Bug
Milestone
7.2

Description

@khushboovashi
khushboovashi
opened on May 8, 2023
Issue body actions

Reproduction steps:

  1. Register the server
  2. Fill in the Host name/address, port, maintenance database, and username
  3. Enter any role that exists in the system followed by arbitrary

SQL commands, eg.

joe; RESET ROLE; CREATE TABLE pwned()

What should happen:

Error: role "joe; RESET ROLE; CREATE TABLE pwned()" does not exist

What actually happens:

Connection to the database with the login role rather than the
intended role and a new "pwned" table in the default schema.

Activity

  1. khushboovashi
    added
    Bug
    EDB Sprint 141
    on May 8, 2023
  2. khushboovashi
    self-assigned this
    on May 8, 2023
  3. khushboovashi
    added this to Current Sprint (213)on May 8, 2023
  4. khushboovashi
    moved this to 🏗 In Progress in Current Sprint (213)on May 8, 2023
  5. khushboovashi
    added a commit that references this issue on May 8, 2023

    Fix an issue in the register server when setting the role, an arbitra…

    d78bde7
  6. khushboovashi
    moved this from 🏗 In Progress to In Review in Current Sprint (213)on May 8, 2023
  7. akshay-joshi
    added a commit that references this issue on May 8, 2023

    Fix an issue in the register server when setting the role, an arbitra…

    af1c70f
  8. akshay-joshi
    moved this from In Review to In Testing in Current Sprint (213)on May 8, 2023
  9. akshay-joshi
    added this to the 7.2 milestone on May 8, 2023
  10. akshay-joshi
    assigned
    FaharAbbasRizvi
    and unassigned
    khushboovashi
    on May 8, 2023
  11. akshay-joshi
    added
    EDB Sprint 142
    and removed
    EDB Sprint 141
    on May 9, 2023
  12. FaharAbbasRizvi commented on May 9, 2023

    @FaharAbbasRizvi
    FaharAbbasRizvi
    on May 9, 2023
    Contributor
    More actions

    This is fixed in the latest snapshot build:
    https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2023-05-09/

  13. FaharAbbasRizvi
    closed this as completedon May 9, 2023
  14. FaharAbbasRizvi
    moved this from In Testing to ✅ Done in Current Sprint (213)on May 9, 2023
  15. akshay-joshi
    added a commit that references this issue on May 19, 2023

    Fix an issue in the register server when setting the role, an arbitra…

    2e1828f
  16. akshay-joshi
    removed this from Current Sprint (213)on May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @FaharAbbasRizvi
    FaharAbbasRizvi

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 7.2

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.