martin (OP)
Newbie
Offline
Activity: 8
Merit: 100
|
 |
July 15, 2010, 01:09:23 AM Last edit: August 19, 2025, 02:42:52 PM by martin |
|
_
|
|
|
|
theymos
Administrator
Legendary
Offline
Activity: 5656
Merit: 14521
|
 |
July 15, 2010, 02:18:12 AM |
|
Don't use 8080. Freenet Message System uses that port by default (on localhost), and I expect that there are a lot of FMS users here. It's also a registered port. I suggest using a port that isn't listed here.
|
1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
|
|
|
Bitcoiner
Member

Offline
Activity: 70
Merit: 11
|
 |
July 15, 2010, 06:02:42 PM |
|
Hey Martin,
"Look into packaging the program up into a simple executable which you can run instead of bitcoin, and it will run in the background and kill itself when the bitcoin process dies."
My only concern with this is that we need to open the JSON API, which is insecure. So easy for a trojan to wipe out a user's wallet.
If this feature were embedded directly within Bitcoin, there would be no need to open the JSON API, and security measures could be taken (such as a captcha to be entered before a pay could be fired, or a password).
I am not, however, a security expert. What do you think?
|
Want to thank me for this post? Donate here! Flip your coins over to: 13Cq8AmdrqewatRxEyU2xNuMvegbaLCvEe 
|
|
|
Bitcoiner
Member

Offline
Activity: 70
Merit: 11
|
 |
July 15, 2010, 06:03:52 PM |
|
And alternatively, the JSON API itself can be password secured; would there be a man in the middle attack possible, though?
Lots of security issues to address, but great stuff. I can't wait to see this in action!
|
Want to thank me for this post? Donate here! Flip your coins over to: 13Cq8AmdrqewatRxEyU2xNuMvegbaLCvEe 
|
|
|
lachesis
|
 |
July 15, 2010, 06:52:13 PM |
|
The JSON-API definitely needs some sort of security features. On Linux, you can use iptables to restrict the users who can access it, but that's hardly secure. If I want to access it from my website backend, then whatever user runs my httpd needs to be able to access it, and that's the user most likely to be compromised on my server!
Of course, a password wouldn't help that scenario too much, since the password would just be another variable in django's settings.py for an attacker to read, but still, it beats a blank!
|
|
|
|
Anonymous
Guest
|
 |
July 16, 2010, 03:21:59 AM |
|
This is definately a temporary solution, ideally this functionality would be built into the client itself.
A temporary solution could be to use a password which the user has to enter, that way the website connects to the bitcoin client (via https), the user enters a password to prove their identity and onlythen everything will work. However, that requires https support from the client - either way the client needs some work to make anything like this properly secure.
Of course, for now, bitcoin probably isn't popular enough to be targeted by a trojan.
Thanks for this martin.If it works as easily as copy and pasting code from paypal onto my site you will have an amazon giftcard coming your way 
|
|
|
|
Anonymous
Guest
|
 |
July 16, 2010, 03:24:58 AM Last edit: July 16, 2010, 03:39:36 AM by noagendamarket |
|
This is definately a temporary solution, ideally this functionality would be built into the client itself.
A temporary solution could be to use a password which the user has to enter, that way the website connects to the bitcoin client (via https), the user enters a password to prove their identity and onlythen everything will work. However, that requires https support from the client - either way the client needs some work to make anything like this properly secure.
Of course, for now, bitcoin probably isn't popular enough to be targeted by a trojan.
Security through obscurity? 3 things I can think of - Allow sellers to specify the value of their goods and services easily. -Have a message section for the buyers when making payment to allow for such things as contact details and postage etc... - ping bitmarket for the latest exchange prices to allow automatic conversion between currencies.
|
|
|
|
BitLex
|
 |
July 16, 2010, 01:42:59 PM |
|
The current problem I'm facing is that there is no way to identify who a transaction came from (and, in fact, there is no way to even get a list of transactions in json at the moment), this makes it very difficult to confirm that a person actually sent the payment - which is of course completely u nacceptable for acommerce application. If I can't find a solution to this I'll have to make some requests to satoshi and wait until he updates the client with some new features.
you could still create a new address for any transaction, if only one person knows that address, it's pretty obvious where bitcoins came from. true that you can't get a list of all transactions from JSON yet, but from received credits by addresses, or labels, no need to know about generated coins on a payment-system, or about sending, when your system is only supposed to accept payments.
|
|
|
|
Quantumplation
|
 |
July 16, 2010, 02:02:55 PM |
|
It's a good temporary solution, and the only drawback I can see is that it requires a different/separate install, as opposed to just being something server-side. Granted, I can't come up with an alternative either, but it IS a bit of barrier-to-entry for some people.
|
NOTE: This account was compromised from 2017 to 2021. I'm in the process of deleting posts not made by me.
|
|
|
Quantumplation
|
 |
July 16, 2010, 02:14:24 PM |
|
It is, I hope that ultimately this is just a proof of concept, and once it's shown to work it can be integrated into the client (using the same port and URLs).
*nods* It's a good initiative, and ANY development in the interest of bitcoins right now is good development.
|
NOTE: This account was compromised from 2017 to 2021. I'm in the process of deleting posts not made by me.
|
|
|
satoshi
Founder
Sr. Member
Offline
Activity: 364
Merit: 8096
|
 |
July 16, 2010, 06:23:04 PM |
|
I've been trying to encourage someone to write and release some sample Python code showing the recommended way to do the typical accounting stuff, but to no avail. It would be nice if you didn't have to re-invent the wheel like you're doing here. Search on getnewaddress and you should find a thread where I gave a small fragment of sample pseudocode.
|
|
|
|
Insti
Sr. Member
  
Offline
Activity: 294
Merit: 252
Firstbits: 1duzy
|
 |
July 16, 2010, 10:05:52 PM |
|
Thanks Satoshi, I found those threads. However, those threads seem to be addressing the server side as far as I can see. I'm trying to address the client side of the problem by presenting a webpage to the user with a simple confirm or cancel button like paypal, that way the user doesn't have to switch to the bitcoin client to send payment. You sound like you want to be integrating with the https://www.mybitcoin.com/ guys.
|
|
|
|
gazoakley
Newbie
Offline
Activity: 12
Merit: 0
|
 |
July 18, 2010, 10:04:04 AM |
|
Isn't the actual sending better handled by the BitCoin interface itself? There's been some talk on here about a URI schema for BitCoin (similar to the idea used by apps like Spotify/iTunes) that allow a link to launch the BitCoin interface pre-filled with address/amount information. It could be web based, but that opens up all kinds of attack vectors that need to be secured - possible to do, but personally I'd feel better seeing the BitCoin UI pop up asking for confirmation knowing that some XSS attack isn't going to steal my coins 
|
|
|
|
|