News for hackers. Stuff that matters.
Re:Bitcoin arbitrage without market risk by xapata on Friday March 17, 2017 @01:39AM (#13891790)
I haven't read the code, but regarding unsanitized user input... Isn't the user the, well, user, in this case?

Complaining about bad data in that situation is like complaining that an admin could hit the power switch.

Or maybe I've completely misunderstood the purpose of this software.

Re:Bitcoin arbitrage without market risk by Steeeve on Friday March 17, 2017 @02:12AM (#13891928)
System() creates child processes, specified by parameters. If you don't sanitize your parameters, any child process could be created. If you run this software as root, that means root will run the command. If you run this as user, it's safer than root, but not actually safe.

1) The user isn't always the one providing user input.

2) When the user does provide input, the user isn't always smart.

3) Users do things that you never would have conceived.

Unsanitized system() calls are even worse than leaving your system wide open to a sql inection attack.

Re:Bitcoin arbitrage without market risk by nikanj on Friday March 17, 2017 @02:52AM (#13892078)
All of the above apply to bash, but it still happily creates processes from user supplied input. As previously mentioned, not all software is run on a remote-access system for strangers on the internet.
Re:Bitcoin arbitrage without market risk by nul_byte on Friday March 17, 2017 @08:07AM (#13893316)
You're right, unsanitized user input is a risk when its externally crafted. At best in this case, its more sloppy coding then a high security risk.
Re:Bitcoin arbitrage without market risk by tedunangst on Friday March 17, 2017 @02:31AM (#13891994)
Do the arguments come from the user or the exchange? If the email is telling me my profits, and the exchange says my profits are ``cat /etc/passwd`` that could be bad.
Re:Bitcoin arbitrage without market risk by jacobwcarlson on Friday March 17, 2017 @02:08AM (#13891908)
Assuming input is from a benign source is literally the cause every single security issue ever. It's bizarre that I've been downvoted for this. And you're commenting about how I'm wrong without even reading the code. I seriously don't understand this site.
Re:Bitcoin arbitrage without market risk by CJefferson on Friday March 17, 2017 @04:24AM (#13892404)
I've read it, it's sloppy but fine.

The same user who feeds in the values for 'system' is also trusting the program with their bitcoins! This is (in my opinion) like saying "bash" is a security issue because you can give it bash scripts.

Re:Bitcoin arbitrage without market risk by Steeeve on Friday March 17, 2017 @02:08PM (#13896391)
I, for one, am astounded at the responses in this thread of discussion.

> why shouldn't my financial system be as open as bash?

Oh my lord...

Re:Bitcoin arbitrage without market risk by xapata on Friday March 17, 2017 @05:37PM (#13898200)
... but it ain't your financial system. Unless I've seriously misunderstood the README.

I put my cups in the dishwasher, not the autoclave. I use 2fa for my financial accounts, but not for my frisbee league. Security is about appropriate paranoia.

Re:Bitcoin arbitrage without market risk by Steeeve on Friday March 17, 2017 @07:05PM (#13898736)
In no scenario is it better to allow arbitrary hidden process creation than to spend 10 minutes writing a function that validates parameters provided to launch a process.
Re:Bitcoin arbitrage without market risk by xapata on Friday March 17, 2017 @09:31PM (#13899394)
I respectfully disagree.