Skip to content

Commit 82e3659

Browse files
gstvribsJhon Mike
authored andcommitted
Translate for React v16.4.2 blog post (#177)
* Translate 2018-08-01-react-v-16-4-2.md * Translate 2018-08-01-react-v-16-4-2.md * Translate 2018-08-01-react-v-16-4-2.md
1 parent 6511c24 commit 82e3659

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed
Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,88 @@
11
---
2-
title: "React v16.4.2: Server-side vulnerability fix"
2+
title: "React v16.4.2: Correção de vulnerabilidade no lado do servidor"
33
author: [gaearon]
44
---
55

6-
We discovered a minor vulnerability that might affect some apps using ReactDOMServer. We are releasing a patch version for every affected React minor release so that you can upgrade with no friction. Read on for more details.
6+
Nós descobrimos uma pequena vulnerabilidade que pode afetar alguns aplicativos usando ReactDOMServer. Nós estamos lançando uma versão de correção para cada release minor afetado do React para que você possa atualizar sem conflito. Leia para mais detalhes.
77

8-
## Short Description {#short-description}
8+
## Pequena Descrição {#short-description}
99

10-
Today, we are releasing a fix for a vulnerability we discovered in the `react-dom/server` implementation. It was introduced with the version 16.0.0 and has existed in all subsequent releases until today.
10+
Hoje, nós estamos lançando uma correção para uma vulnerablidade que encontramos na implementação do `react-dom/server`. Foi introduzido com a versão 16.0.0 e existiu em todas as versões subsequentes até hoje.
1111

12-
This vulnerability **can only affect some server-rendered React apps.** Purely client-rendered apps are **not** affected. Additionally, we expect that most server-rendered apps don't contain the vulnerable pattern described below. Nevertheless, we recommend to follow the mitigation instructions at the earliest opportunity.
12+
Essa vulnerabilidade **só pode afetar alguns aplicativos React renderizados no lado do servidor.** Puramente, aplicativos renderizados no lado cliente **não** são afetados. Adicionalmente, nós esperamos que a maioria dos aplicativos renderizados no lado servidor não contêm o padrão vulnerável descrito abaixo. No entanto, recomendamos seguir as instruções de mitigação assim que possível.
1313

14-
While we were investigating this vulnerability, we found similar vulnerabilities in a few other popular front-end libraries. We have coordinated this release together with [Vue](https://github.com/vuejs/vue/releases/tag/v2.5.17) and [Preact](https://github.com/developit/preact-render-to-string/releases/tag/3.7.1) releases fixing the same issue. The tracking number for this vulnerability is `CVE-2018-6341`.
14+
Enquanto estávamos investigando essa vulnerabilidade, nós encontramos vulnerabilidades semelhantes em algumas outras populares bibliotecas de front-end. Nós coordenamos esta release junto com [Vue](https://github.com/vuejs/vue/releases/tag/v2.5.17) e [Preact](https://github.com/developit/preact-render-to-string/releases/tag/3.7.1) releases, arrumando o mesmo problema. O número de rastreamento para esta vulnerabilidade é `CVE-2018-6341`.
1515

16-
## Mitigation {#mitigation}
16+
## Mitigação {#mitigation}
1717

18-
**We have prepared a patch release with a fix for every affected minor version.**
18+
**Preparamos uma pacote de correção, com uma correção para cada versão secundária afetada.**
1919

2020
### 16.0.x {#160x}
2121

22-
If you're using `react-dom/server` with this version:
22+
Se você estiver utilizando `react-dom/server` com esta versão:
2323

2424
2525

26-
Update to this version instead:
26+
Atualize para a versão:
2727

28-
- `[email protected]` **(contains the mitigation)**
28+
- `[email protected]` **(contém a mitigação)**
2929

3030
### 16.1.x {#161x}
3131

32-
If you're using `react-dom/server` with one of these versions:
32+
Se você estiver usando `react-dom/server` com uma destas versões:
3333

3434
3535
3636

37-
Update to this version instead:
37+
Atualize para a versão:
3838

39-
- `[email protected]` **(contains the mitigation)**
39+
- `[email protected]` **(contém a mitigação)**
4040

4141
### 16.2.x {#162x}
4242

43-
If you're using `react-dom/server` with this version:
43+
Se você estiver usando `react-dom/server` com esta versão:
4444

4545
4646

47-
Update to this version instead:
47+
Atualize para a versão:
4848

49-
- `[email protected]` **(contains the mitigation)**
49+
- `[email protected]` **(contém a mitigação)**
5050

5151
### 16.3.x {#163x}
5252

53-
If you're using `react-dom/server` with one of these versions:
53+
Se você estiver utilizando `react-dom/server` em uma destas versões:
5454

5555
5656
5757
5858

59-
Update to this version instead:
59+
Atualize para a versão:
6060

61-
- `[email protected]` **(contains the mitigation)**
61+
- `[email protected]` **(contém a mitigação)**
6262

6363
### 16.4.x {#164x}
6464

65-
If you're using `react-dom/server` with one of these versions:
65+
Se você estiver utilizando `react-dom/server` com uma destas versões:
6666

6767
6868
6969

70-
Update to this version instead:
70+
Atualize para a versão:
7171

72-
- `[email protected]` **(contains the mitigation)**
72+
- `[email protected]` **(contém a mitigação)**
7373

74-
If you're using a newer version of `react-dom`, no action is required.
74+
Se você estiver usando a versão mais recente do `react-dom`, nenhuma ação é necessária.
7575

76-
Note that only the `react-dom` package needs to be updated.
76+
Repare que apenas o pacote `react-dom` precisa ser atualizado.
7777

78-
## Detailed Description {#detailed-description}
78+
## Descrição Detalhada {#detailed-description}
7979

80-
Your app might be affected by this vulnerability only if both of these two conditions are true:
80+
O seu aplicativo apenas pode ser afetado por essa vulnerabilidade, se essas duas condições forem verdadeiras:
8181

82-
* Your app is **being rendered to HTML using [ReactDOMServer API](/docs/react-dom-server.html)**, and
83-
* Your app **includes a user-supplied attribute name in an HTML tag.**
82+
* Seu aplicativo **está renderizando HTML usando [ReactDOMServer API](/docs/react-dom-server.html)**, e
83+
* Seu aplicativo **inclui um nome de atributo fornecido pelo usuário em uma tag HTML.**
8484

85-
Specifically, the vulnerable pattern looks like this:
85+
Especificamente, o padrão vulnerável se parece com isso:
8686

8787
```js{2}
8888
let props = {};
@@ -91,58 +91,58 @@ let element = <div {...props} />;
9191
let html = ReactDOMServer.renderToString(element);
9292
```
9393

94-
In order to exploit it, the attacker would need to craft a special attribute name that triggers an [XSS](https://en.wikipedia.org/wiki/Cross-site_scripting) vulnerability. For example:
94+
Para explorá-lo, o invasor precisaria criar um nome de atributo especial que acionasse uma vulnerabilidade [XSS](https://en.wikipedia.org/wiki/Cross-site_scripting). Por exemplo:
9595

9696
```js
9797
let userProvidedData = '></div><script>alert("hi")</script>';
9898
```
9999

100-
In the vulnerable versions of `react-dom/server`, the output would let the attacker inject arbitrary markup:
100+
Nas versões vulneráveis ​​de `react-dom/server`, a saída deixaria o atacante injetar marcação arbitrária:
101101

102102
```html
103103
<div ></div><script>alert("hi")</script>
104104
```
105105

106-
In the versions after the vulnerability was [fixed](https://github.com/facebook/react/pull/13302) (and before it was introduced), attributes with invalid names are skipped:
106+
Nas versões após, a vulnerabilidade foi [ajustada](https://github.com/facebook/react/pull/13302) (e antes de ser introduzido), atributos com nomes inválidos são ignorados:
107107

108108
```html
109109
<div></div>
110110
```
111111

112-
You would also see a warning about an invalid attribute name.
112+
Você também veria um aviso sobre um nome de atributo inválido.
113113

114-
Note that **we expect attribute names based on user input to be very rare in practice.** It doesn't serve any common practical use case, and has other potential security implications that React can't guard against.
114+
Observe que **esperamos que os nomes de atributos baseados na entrada do usuário sejam muito raros na prática.** Ele não serve a nenhum caso de uso prático comum e tem outras possíveis implicações de segurança que o React não pode proteger contra.
115115

116-
## Installation {#installation}
116+
## Instalação {#installation}
117117

118-
React v16.4.2 is available on the npm registry.
118+
O React v16.4.2 está disponível no registro npm.
119119

120-
To install React 16 with Yarn, run:
120+
Para instalar o React 16 com Yarn, rode:
121121

122122
```bash
123123
yarn add react@^16.4.2 react-dom@^16.4.2
124124
```
125125

126-
To install React 16 with npm, run:
126+
Para instalar o React 16 com npm, rode:
127127

128128
```bash
129129
npm install --save react@^16.4.2 react-dom@^16.4.2
130130
```
131131

132-
We also provide UMD builds of React via a CDN:
132+
Nós também disponibilizamos UMD builds do React via CDN:
133133

134134
```html
135135
<script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
136136
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
137137
```
138138

139-
Refer to the documentation for [detailed installation instructions](/docs/installation.html).
139+
Consulte a documentação para [instruções detalhadas de instalação](/docs/installation.html).
140140

141141
## Changelog {#changelog}
142142

143143
### React DOM Server {#react-dom-server}
144144

145-
* Fix a potential XSS vulnerability when the attacker controls an attribute name (`CVE-2018-6341`). This fix is available in the latest `[email protected]`, as well as in previous affected minor versions: `[email protected]`, `[email protected]`, `[email protected]`, and `[email protected]`. ([@gaearon](https://github.com/gaearon) in [#13302](https://github.com/facebook/react/pull/13302))
145+
* Corrige uma potencial vulnerabilidade de XSS quando o invasor controla um nome de atributo (`CVE-2018-6341`). Esta correção está disponível no mais recente `[email protected]`, bem como nas versões secundárias afetadas anteriores: `[email protected]`, `[email protected]`, `[email protected]`, e `[email protected]`. ([@gaearon](https://github.com/gaearon) em [#13302](https://github.com/facebook/react/pull/13302))
146146

147-
* Fix a crash in the server renderer when an attribute is called `hasOwnProperty`. This fix is only available in `[email protected]`. ([@gaearon](https://github.com/gaearon) in [#13303](https://github.com/facebook/react/pull/13303))
147+
* Corrige uma falha no renderizador do servidor quando um atributo é chamado `hasOwnProperty`. Essa correção só está disponível em `[email protected]`. ([@gaearon](https://github.com/gaearon) em [#13303](https://github.com/facebook/react/pull/13303))
148148

0 commit comments

Comments
 (0)