Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #9335 > unrolled thread
| Started by | "Bhushan N.N" <bhushan154@gmail.com> |
|---|---|
| First post | 2013-05-14 20:07 -0700 |
| Last post | 2013-05-15 08:14 -0700 |
| Articles | 6 — 5 participants |
Back to article view | Back to comp.lang.php
Security risks allowing users to upload a css file? "Bhushan N.N" <bhushan154@gmail.com> - 2013-05-14 20:07 -0700
Re: Security risks allowing users to upload a css file? Arno Welzel <usenet@arnowelzel.de> - 2013-05-15 12:12 +0200
Re: Security risks allowing users to upload a css file? The Natural Philosopher <tnp@invalid.invalid> - 2013-05-15 11:26 +0100
Re: Security risks allowing users to upload a css file? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-15 06:35 -0400
Re: Security risks allowing users to upload a css file? Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-15 12:44 +0000
Re: Security risks allowing users to upload a css file? "Bhushan N.N" <bhushan154@gmail.com> - 2013-05-15 08:14 -0700
| From | "Bhushan N.N" <bhushan154@gmail.com> |
|---|---|
| Date | 2013-05-14 20:07 -0700 |
| Subject | Security risks allowing users to upload a css file? |
| Message-ID | <6540a499-eb9d-4c14-a355-16446704f879@googlegroups.com> |
Are there any security risks involved in allowing a user to upload a css file? I will be using the uploaded css file for a preview. Using another HTML template I already have on the server.
[toc] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2013-05-15 12:12 +0200 |
| Message-ID | <51935F7B.5080303@arnowelzel.de> |
| In reply to | #9335 |
Am 15.05.2013 05:07, schrieb Bhushan N.N: > Are there any security risks involved in allowing a user to upload a css file? This depends on the way, how the CSS file is used on the server. > I will be using the uploaded css file for a preview. Using another HTML template I already have on the server. So - users can upload a file and this will be used by a <link rel="stylesheet" type="text/css" href="..." />? Well - it is possible to use CSS to obfuscate existing elements or even to load data from other servers. So i would say - yes it is a risk if you don't validate the CSS. It may not break your server, if it only sends the data it stored earlier as a result of an upload - but it may me misused by others to host fake websites on your machine. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2013-05-15 11:26 +0100 |
| Message-ID | <kmvnrs$of2$3@news.albasani.net> |
| In reply to | #9335 |
On 15/05/13 04:07, Bhushan N.N wrote: > Are there any security risks involved in allowing a user to upload a css file? > > I will be using the uploaded css file for a preview. Using another HTML template I already have on the server. Honey, there is a risk allowing user to upload ANYTHING to a server. Up to and including aTCP packet requesting a page... Your job is to balance that risk with the reward you get from them for allowing them to do it. -- Ineptocracy (in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2013-05-15 06:35 -0400 |
| Message-ID | <kmvo5j$5eu$1@dont-email.me> |
| In reply to | #9335 |
On 5/14/2013 11:07 PM, Bhushan N.N wrote: > Are there any security risks involved in allowing a user to upload a css file? > > I will be using the uploaded css file for a preview. Using another HTML template I already have on the server. > Uploading files always has security risks. Even connecting to the internet has security risks. The only way to not have any security risk is to not have any USB ports, DVD drives, etc. on the machine, lock the machine in a vault with no connection to the outside world, and don't give anyone the key. Even then your machine isn't perfectly safe. Of course, such a machine wouldn't be very useful. There are always security risks. You need to balance the risks vs. the rewards. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2013-05-15 12:44 +0000 |
| Message-ID | <kmvvvj$8so$2@dont-email.me> |
| In reply to | #9335 |
On Tue, 14 May 2013 20:07:29 -0700, Bhushan N.N wrote: > Are there any security risks involved in allowing a user to upload a css > file? > > I will be using the uploaded css file for a preview. Using another HTML > template I already have on the server. Yes, css can be used to redirect links to, or load images (or almost anything else) from third party sites. It's also possible to obfuscate urls in css files using hexadecimal %xx codes so that searching for common strings won't find them. I would be vary wary about allowing third parties to upload their own unchecked css files to use with my website. I certainly wouldn't allow such css to subsequently be served from my server without at least a regex check to look for embedded urls and obfuscated url strings, and probably a manual inspection as well. -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | "Bhushan N.N" <bhushan154@gmail.com> |
|---|---|
| Date | 2013-05-15 08:14 -0700 |
| Message-ID | <3725be74-7633-43ef-8f8a-b900f1cb8267@googlegroups.com> |
| In reply to | #9335 |
Thanks everyone :)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web