View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
11394 | Bug reports | Security | public | 2016-06-16 09:12 | 2016-06-17 08:45 |
Reporter | asshank | Assigned To | c_schmitz | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.50.x | ||||
Fixed in Version | 2.50.x | ||||
Summary | 11394: file upload error reveals absolute path | ||||
Description | If file upload has errors, the message contains the absolute path to the tmp/ directory. This exposure should imho be avoided, merely stating that the temporary directory has errrors is beter. | ||||
Steps To Reproduce | do a file upload and try to trigger an error | ||||
Additional Information | change the locales (.po) should do the trick... "An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder." into "An error occurred uploading your file. This may be caused by incorrect permissions in the temporary folder or the file is too large." This will make the message better.. also mentioning a possible file too large reason | ||||
Tags | No tags attached. | ||||
Bug heat | 258 | ||||
Complete LimeSurvey version number (& build) | 160614 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | - | ||||
Database type & version | 258 | ||||
Server OS (if known) | - | ||||
Webserver software & version (if known) | - | ||||
PHP Version | - | ||||
Maybe show path only of have superadmin right (then not for public). |
|
Good idea! More detailed info (crossed my mind) for superadmin but that is more of a feature request. That said: The file-upload proces returns more errors and so can give a more accurate errormessage. Permission is one of them, but also exceeding the max_file_uploads can be determined. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=19471 |
|
Don't forget to update the locales: "An error occurred uploading your file. This may be caused by incorrect permissions for the application /tmp folder." is not translated yet in version 160616. I think! |
|
What locales? |
|
language files? String exists in language files? |
|
I think I'm not familiar with the way the .po (.mo) are managed. The limesurvey.pot has the right string (autocompiled I think) So I guess I have to wait :-) My bad!? |
|
Yes, that happens automatically. |
|
Version 2.50+ Build 160616 released |
|
LimeSurvey: master d321db37 2016-06-16 10:19 Details Diff |
Fixed issue 11394: [security] File upload error path revelation |
Affected Issues 11394 |
|
mod - application/controllers/admin/dataentry.php | Diff File | ||
mod - application/controllers/admin/labels.php | Diff File | ||
mod - application/controllers/admin/participantsaction.php | Diff File | ||
mod - application/controllers/admin/questiongroups.php | Diff File | ||
mod - application/controllers/admin/questions.php | Diff File | ||
mod - application/controllers/admin/surveyadmin.php | Diff File | ||
mod - application/controllers/admin/templates.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-06-16 09:12 | asshank | New Issue | |
2016-06-16 09:26 | DenisChenu | Note Added: 39614 | |
2016-06-16 09:59 | c_schmitz | Assigned To | => c_schmitz |
2016-06-16 09:59 | c_schmitz | Status | new => assigned |
2016-06-16 10:05 | asshank | Note Added: 39619 | |
2016-06-16 10:19 | c_schmitz | Changeset attached | => LimeSurvey master d321db37 |
2016-06-16 10:19 | c_schmitz | Note Added: 39621 | |
2016-06-16 10:19 | c_schmitz | Resolution | open => fixed |
2016-06-16 19:15 | asshank | Note Added: 39633 | |
2016-06-16 19:22 | asshank | Note Edited: 39633 | |
2016-06-16 20:25 | c_schmitz | Note Added: 39634 | |
2016-06-16 20:55 | pmonstad | Note Added: 39635 | |
2016-06-16 21:28 | asshank | Note Added: 39636 | |
2016-06-16 23:02 | c_schmitz | Note Added: 39637 | |
2016-06-16 23:02 | c_schmitz | Status | assigned => resolved |
2016-06-16 23:02 | c_schmitz | Fixed in Version | => 2.5 |
2016-06-17 08:45 | c_schmitz | Note Added: 39638 | |
2016-06-17 08:45 | c_schmitz | Status | resolved => closed |