Git Product home page Git Product logo

superuser's People

Contributors

jesusfreke avatar

Watchers

 avatar

superuser's Issues

No password protection on superuser

What steps will reproduce the problem?
1. Install superuser on a rooted android phone
2. Open a shell and run 'su'
3. Note that you're asked if you want to give that app permission to run as 
super-user, but there 
is no password.

What is the expected output? What do you see instead?

I expect to be asked for a password before being granted su access.  As it 
stands, this looks like 
it could be used by someone who got hold of my phone to, for example, get my 
gmail password 
from the gmail app.

Now I know that with physical access they could always flash the phone anyway, 
but this changes 
the attack from 'root the phone', including multiple restarts, to 'enter a few 
shell commands'.

The fix could be something as simple as enabling the lock screen (requiring the 
user the unlock 
the phone, even if the lock screen is not normally enabled) when bringing up 
the 'allow'/'deny' 
screen.  That would add a password, but in a way that is relatively unobtrusive.

Original issue reported on code.google.com by [email protected] on 16 Jan 2010 at 9:18

overflow in su.c

su.c has a trivially exploitable bug on lines 65-66:

char update[1024];
sprintf(update, "update whitelist set count=%d where _id='%s';", count,
argv[0]);

An attacker controls the size and values representing in argv[0]. When
argv[0] is greater than 1024, this will cause an overflow condition. This
might allow an attacker to execute arbitrary code.

This kind of stuff is all over su.c and is basically a nightmare.

Original issue reported on code.google.com by [email protected] on 26 May 2010 at 3:57

Alternative to superuser?

This programm seems to be written by idiots.
Reading the source makes me crying.
Is there an *secure* alternative to this tool?

Original issue reported on code.google.com by [email protected] on 26 Mar 2011 at 11:48

A bunch of bugs in su.c

I've attached a quick code review that includes a dozen security issues. 

Almost all of these bugs allow any other application on the phone to gain
root privileges without user interaction. 

Original issue reported on code.google.com by [email protected] on 26 May 2010 at 4:20

Attachments:

ERROR/Database: Leak found

When I am prompted to allow an application to access su, if I press the
back button, the following error appears
ERROR/Database: Leak found

Stacktrace from LogCat attached

Original issue reported on code.google.com by [email protected] on 17 Feb 2009 at 4:51

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.