Skip to content

--is-dba not working properly on any DBMS #184

Closed

Description

@stamparm
No description provided.

Activity

  1. stamparm commented on Sep 13, 2012

    @stamparm
    MemberAuthor
    
    [10:19:07] [INFO] testing if current user is DBA
    [10:19:07] [PAYLOAD] 1 AND 7217=CAST(CHR(58)||CHR(111)||CHR(107)||CHR(118)||CHR(58)||(SELECT (CASE WHEN ((SELECT usesuper=true FROM pg_user WHERE usename=CURRENT_USER OFFSET 0 LIMIT 1)) THEN CHR(49) ELSE CHR(48) END))::text||CHR(58)||CHR(114)||CHR(103)||CHR(122)||CHR(58) AS NUMERIC)
    [10:19:07] [INFO] retrieved: 1
    [10:19:07] [DEBUG] performed 1 queries in 0 seconds
    current user is DBA:    False
    
  2. added a commit that references this issue on Sep 13, 2012
  3. stamparm commented on Sep 13, 2012

    @stamparm
    MemberAuthor

    expected=EXPECTED.BOOL returns boolean value True or False, so making comparison with == "1" was causing this whole issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions