Semisol 👨💻 on Nostr: also you could easily perform a DoS attack on certain events by creating a lot of ...
also you could easily perform a DoS attack on certain events by creating a lot of events with a higher event ID (or lower depending on the relay impl) and the same created at as the target event
you reach your limit before the target event gets returned and there is no way to find it except by id
this will also become a problem once nostr has a high event volume per second
the only way to fix this is to allow support for proper pagination
Published at
2025-01-19 14:47:18Event JSON
{
"id": "6733f180c033ba58f409c768c2be9930c27f4133914ce7f610a68a3658cc74e6",
"pubkey": "52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd",
"created_at": 1737298038,
"kind": 1,
"tags": [
[
"e",
"76103db2dc1cec0b3686a264c67aa327d4dc0c926d779d063767d8962ee33223",
"",
"root"
],
[
"e",
"f81769cb44d0325078f25c4f402b289ee79097d06d15731f4a781ea38a913f7f",
"",
"reply"
],
[
"p",
"9aff936f8619411c0692e14d7aaf49e45cfd908e8a9c7afd3c72a64ba0dcabfc"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
]
],
"content": "also you could easily perform a DoS attack on certain events by creating a lot of events with a higher event ID (or lower depending on the relay impl) and the same created at as the target event \nyou reach your limit before the target event gets returned and there is no way to find it except by id\n\nthis will also become a problem once nostr has a high event volume per second\n\nthe only way to fix this is to allow support for proper pagination",
"sig": "eecae6b77361e3d38c2c085e504fada4788693bf6e661baaa9c138145a3346cd0e954e2e529b4adb0e7b0703c824097dccc05175ae54c63f12ea8d8fbea570f8"
}