mirror of https://gitlab.com/bashrc2/epicyon
Spoofing check
parent
e67c74a3f9
commit
17bcdcd659
|
@ -270,7 +270,7 @@ ActivityPub defines some terms in addition to those provided by [ActivityStreams
|
|||
|
||||
ActivityPub shares the same [URI / IRI conventions as in ActivityStreams](https://www.w3.org/TR/activitystreams-core/#urls).
|
||||
|
||||
Servers *SHOULD* validate the content they receive to avoid content spoofing attacks. (A server should do something at least as robust as checking that the object appears as received at its origin, but mechanisms such as checking signatures would be better if available). No particular mechanism for verification is authoritatively specified by this document, but please see Security Considerations for some suggestions and good practices.
|
||||
Servers *SHOULD* validate the content they receive to avoid content spoofing attacks. This *MAY* be done by checking the time that a server received a post at an `inbox` or `outbox` (converted to [UTC](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)) against the `date` field within the [http header signature](https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures-07). See Security Considerations for details of using http signatures.
|
||||
|
||||
As an example, if example.com receives the activity
|
||||
|
||||
|
@ -551,7 +551,7 @@ Content-Type: application/ld+json; profile="https://www.w3.org/ns/activitystream
|
|||
"@context": ["https://www.w3.org/ns/activitystreams",
|
||||
{"@language": "en"}],
|
||||
"type": "Like",
|
||||
"actor": "https://dustycloud.org/chris/",
|
||||
"actor": "https://dustycloud.org/users/chris",
|
||||
"name": "Chris liked 'Minimal ActivityPub update client'",
|
||||
"object": "https://rhiaro.co.uk/2016/05/minimal-activitypub",
|
||||
"to": ["https://rhiaro.co.uk/#amy",
|
||||
|
@ -611,7 +611,7 @@ the like is generated by the client as:
|
|||
"@context": ["https://www.w3.org/ns/activitystreams",
|
||||
{"@language": "en"}],
|
||||
"type": "Like",
|
||||
"actor": "https://dustycloud.org/chris/",
|
||||
"actor": "https://dustycloud.org/users/chris",
|
||||
"summary": "Chris liked 'Minimal ActivityPub update client'",
|
||||
"object": "https://rhiaro.co.uk/2016/05/minimal-activitypub",
|
||||
"to": ["https://rhiaro.co.uk/#amy",
|
||||
|
|
Loading…
Reference in New Issue