Closed Bug 738776 Opened 12 years ago Closed 12 years ago

Prevent repeat in-app payments with nonce

Categories

(addons.mozilla.org Graveyard :: API, defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kumar, Assigned: kumar)

References

Details

Implement some sort of nonce to prevent in-app payments from being submitted twice (and also to prevent replay attacks).
Assignee: nobody → kumar.mcmillan
Blocks: 698116
Priority: -- → P1
Target Milestone: --- → 6.4.8
Target Milestone: 6.4.8 → 6.4.9
Target Milestone: 6.4.9 → 6.5.0
Target Milestone: 6.5.0 → 6.5.1
This bug was originally filed after security discussions. However, I chatted with rforbes about it and we decided it's a wontfix. Here are our reasons:

- The app hosting the iframe won't be able to sniff the POST requests made when the user clicks the confirm button so they can't do a replay attack (rforbes may try to see if he can get sniffing to work)
- We already have a csrf token on the confirmation form so we can trust the POST came from our confirmation form

In addition to a replay attack, the original topic also included stopping a user from accidentally buying something twice. We decided we can't really prevent that because any product can be legitimately bought twice. We may want to introduce some basic protection for this though like disabling the confirm button after the first click.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.