Markus Schaber wrote:
> Julian Foad wrote:
>> "specify a password ARG (insecure: on many systems,
>> other users can read the command-line arguments)"
>
> I fully agree with your concerns about vague warnings. But in my eyes,
> it is also important to point out the alternatives, so that the us
Ben Reser writes:
> I don't think the C standards specify this sort of behavior but something has
> to be shared between the kernel and the process in order to allow this
> modification.
sendmail is known for changing its ps line. There is a python module
that demonstrates various methods:
htt
On Fri, Jul 4, 2014 at 8:46 AM, Branko Čibej wrote:
> On 04.07.2014 02:14, Gabriela Gibson wrote:
>
> I also looked at the C90 standard because I thought maybe they defined
> argv as immutable (since it should not complain about being const with this
> type of main declaration I think) and this
On 04.07.2014 04:34, Ben Reser wrote:
> On 7/3/14 4:50 PM, Gabriela Gibson wrote:> it compiles and runs and in gdb the
> vars do change, but the compiler isn't happy:
>> subversion/svn/svn.c: In function 'main':
>>
>> subversion/svn/svn.c:3048:23: warning: assignment discards 'const' qualifier
>> f
On 04.07.2014 02:14, Gabriela Gibson wrote:
> I also looked at the C90 standard because I thought maybe they defined
> argv as immutable (since it should not complain about being const with
> this type of main declaration I think) and this is what is says:
>
> "The parameters argc and argv and the
What if we leave the current --password as is (for convenience) and just
add an optional, secondary password mechanism for those admins who want to
be doubly sure?
On Fri, Jul 4, 2014 at 7:00 AM, Ben Reser wrote:
> On 7/3/14 9:10 PM, Martin Furter wrote:
> > 3) Allow the password to be supplie
On 7/3/14 9:10 PM, Martin Furter wrote:
> 3) Allow the password to be supplied over stdin using the special value "-".
>
> Nobody will see the password. The only leak is that a password has been
> supplied using stdin. An attacker will have to convince the calling
> application
> to run something
On 07/04/14 04:47, Gabriela Gibson wrote:
This is a summary of Ben's reply:
Ben Reser wrote on Thu, Jul 03, 2014 at 12:54:58 -0700:
> 1) Remove the option.
> 2) Redact the password in the argv after starting up and finding the
> bits to redact.
3) Allow the password to be supplied over std
On 7/3/14 4:50 PM, Gabriela Gibson wrote:> it compiles and runs and in gdb the
vars do change, but the compiler isn't happy:
> subversion/svn/svn.c: In function 'main':
>
> subversion/svn/svn.c:3048:23: warning: assignment discards 'const' qualifier
> from pointer target type [enable\
> d by defaul
I also looked at the C90 standard because I thought maybe they defined argv
as immutable (since it should not complain about being const with this type
of main declaration I think) and this is what is says:
"The parameters argc and argv and the strings pointed to by the argv array
shall
be modifia
Oh, I was playing about with this earlier, but didn't get all that far:
I go this far in svn.c (has breakpoint marker in it)
[[[
int
main(int argc, char **argv)
{
apr_pool_t *pool;
int exit_code = EXIT_SUCCESS;
svn_error_t *err;
const char **argv_org;
/* Initiali
On 7/3/14 4:23 PM, Gabriela Gibson wrote:
> Could that be because of the libtool svn-lt script that sits in the middle?
> Because in gdb it does change, but not in ps.
No because I wasn't even doing anything with Subversion yet let alone libtool.
It was just a very basic C program with nothing mo
Ben wrote:
> Rewriting the array isn't seen by the kernel. At least when I initially
wrote
> that example I tried just setting argv[++i] = "" and the ps
output
> didn't change.
Could that be because of the libtool svn-lt script that sits in the middle?
Because in gdb it does change, but not in p
13 matches
Mail list logo