Skip to content

Add security doc - #321

Merged
mxstbr merged 5 commits into
masterfrom
security-doc
Jan 11, 2017
Merged

mxstbr merged 5 commits into
masterfrom
security-doc

Conversation

@mxstbr

@mxstbr mxstbr commented Dec 18, 2016 •

Copy link
Copy Markdown
Member

Adds a documentation page to warn developers about CSS injection, a possible attack vector against their web applications.

This is in no way specifically styled-components related, you should always santize input, but since styled-components does make it easy to interpolate arbitrary CSS declarations and also lets users add themes we should mention this.

Full credit for notifying me of this goes to @jayphelps

@mxstbr

mxstbr commented Dec 18, 2016

Copy link
Copy Markdown
Member Author

(CI failure unrelated and due to a stale cache on AppVeyor)

@k15a k15a left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some typos.

Comment thread docs/security.md Outdated
@@ -0,0 +1,62 @@
# Security

**Please do not forget to sanitise and validate input!**

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sanitise should be sanitize

Comment thread docs/security.md Outdated

**⚠ OH NO ⚠** suddenly, every user that finds this random theme on Google and copy and pastes it to your app interface withdraws all their funds!

### Constain user input

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Constain should be Constrain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants