Closed
Bug 299479
Opened 19 years ago
Closed 18 years ago
Missing version number validation leads potential path traversal and other troubles
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.0
People
(Reporter: ma1, Assigned: fligtar)
References
()
Details
(Whiteboard: verify that this is no longer a threat, then resolve)
Attachments
(2 obsolete files)
We don't validate version numbers extracted from extension manifest. We use that number to form a file name: using meta characters in version number can lead to weird (or dangerous) results. This is not as severe as bug #298756, because patch of that bug (attachment #187287 [details] [diff]) prevents uploading of files that are not xpi nor jars. Nevertheless, there's potential for directory traversal which may be exploited e.g. to overwrite already approval extensions skipping review.
Comment on attachment 188056 [details] [diff] [review] Version number validation I'd like it if the die message told the user how to make the version number valid. r=cst
Attachment #188056 -
Flags: first-review?(cst) → first-review+
| Reporter | ||
Comment 3•19 years ago
|
||
(In reply to comment #2) > (From update of attachment 188056 [details] [diff] [review] [edit]) > I'd like it if the die message told the user how to make the version number > valid. I wouldn't, because I don't trust an extension developer which doesn't read the relevant documentation and know how a version number should be ;)
| Reporter | ||
Comment 4•19 years ago
|
||
Attachment #188056 -
Attachment is obsolete: true
Attachment #188295 -
Flags: first-review?(mconnor)
Updated•19 years ago
|
Group: webtools-security → update-security
Isn't this fixed?
Comment 7•19 years ago
|
||
Comment on attachment 188295 [details] [diff] [review] Better indentation + link to reference doc man, I could bitch about style, but its AMO 1.0, style is irrelevant here.
Attachment #188295 -
Flags: first-review?(mconnor) → first-review+
Comment 8•19 years ago
|
||
Comment on attachment 188295 [details] [diff] [review] Better indentation + link to reference doc This patch is no longer valid, this section of code was rewritten.
Attachment #188295 -
Attachment is obsolete: true
Updated•19 years ago
|
Assignee: g.maone → nobody
Status: ASSIGNED → NEW
Whiteboard: verify that this is no longer a threat, then resolve
Target Milestone: 1.0 → 2.0
| Assignee | ||
Updated•18 years ago
|
| Assignee | ||
Comment 9•18 years ago
|
||
The regex and link in the patch have been added in Remora.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
Updated•9 years ago
|
Group: client-services-security
Flags: needinfo?(amuntner)
You need to log in
before you can comment on or make changes to this bug.
Description
•