Wladimir [ARCHIVE] on Nostr: 📅 Original date posted:2014-09-13 📝 Original message:On Fri, Sep 12, 2014 at ...
📅 Original date posted:2014-09-13
📝 Original message:On Fri, Sep 12, 2014 at 10:59 PM, Mark van Cuijk <mark at coinqy.com> wrote:
> If you do so, please make sure the length of the hash is included in the PaymentDetails/PaymentRequest. If someone parses the URI and doesn’t have an authenticated way of knowing the expected length of the hash, a MITM attacker can just truncate the hash to lower security.
But if they can truncate they can just as well pass a completely
different hash that matches their payment request. If an attacker can
change the bitcoin: URI, this scheme is broken.
The point of the proposal is to make sure that the payment request
matches the URI. So *if* you communicate the URI by secure means, this
authenticates the associated payment request as well, even if fetched
by insecure means (such as http:...) itself.
Wladimir
Published at
2023-06-07 15:25:44Event JSON
{
"id": "a1a31404acfc5a7eef96f8fc31c56fc1fe7d2b424a4f04b19cd5e82903763842",
"pubkey": "30217b018a47b99ed4c20399b44b02f70ec4f58ed77a2814a563fa28322ef722",
"created_at": 1686151544,
"kind": 1,
"tags": [
[
"e",
"5045235f447739204820462b94c541446b82ef26097d3889eeeed0767ae1d197",
"",
"root"
],
[
"e",
"668c79ffd121e2d674d8ca1607b3137e2eeb5aaf60c2b404625ed5c59a541541",
"",
"reply"
],
[
"p",
"8fd2b087c87885a0caec95c00fdbb48e63439b0bb5715488745108e5d300bd98"
]
],
"content": "📅 Original date posted:2014-09-13\n📝 Original message:On Fri, Sep 12, 2014 at 10:59 PM, Mark van Cuijk \u003cmark at coinqy.com\u003e wrote:\n\u003e If you do so, please make sure the length of the hash is included in the PaymentDetails/PaymentRequest. If someone parses the URI and doesn’t have an authenticated way of knowing the expected length of the hash, a MITM attacker can just truncate the hash to lower security.\n\nBut if they can truncate they can just as well pass a completely\ndifferent hash that matches their payment request. If an attacker can\nchange the bitcoin: URI, this scheme is broken.\n\nThe point of the proposal is to make sure that the payment request\nmatches the URI. So *if* you communicate the URI by secure means, this\nauthenticates the associated payment request as well, even if fetched\nby insecure means (such as http:...) itself.\n\nWladimir",
"sig": "3fca990927da129d5427d37805aa0a9b6ce11ea7ab0ebf2e64c06241236ebff74f2c705cdfb46559d604bf44b0719b163d4d5cad0e4068fd9d9da9341fc82d9a"
}