mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -05:00
Merge branch 'feature/cves' into premerge
This commit is contained in:
commit
17e545543c
@ -53,6 +53,12 @@
|
||||
<email>georg@op-co.de</email>
|
||||
<jid>georg@yax.im</jid>
|
||||
</author>
|
||||
<revision>
|
||||
<version>0.13.4</version>
|
||||
<date>2021-05-25</date>
|
||||
<initials>gl</initials>
|
||||
<remark><p>Add CVE references</p></remark>
|
||||
</revision>
|
||||
<revision>
|
||||
<version>0.13.3</version>
|
||||
<date>2021-03-23</date>
|
||||
@ -533,6 +539,9 @@
|
||||
<li>any copies that do not meet this requirement MUST be ignored.</li>
|
||||
</ul>
|
||||
<p>Outbound chat messages that are encrypted end-to-end are not often useful to receive on other resources. As such, they should use the <private/> element specified above to avoid such copying, unless the encryption mechanism is able to accommodate this protocol.</p>
|
||||
<cve id="2017-5589" url="https://rt-solutions.de/en/cve-2017-5589_xmpp_carbons/">Multiple XMPP Clients User Impersonation Vulnerability</cve>
|
||||
<cve id="2019-16235" url="https://gultsch.de/dino_multiple.html">Multiple Vulnerabilities found in Dino</cve>
|
||||
<cve id="2020-26547" url="https://monal.im/blog/cve-2020-26547/">Missing sender verification for Carbons and MAM in Monal before 4.9</cve>
|
||||
</section1>
|
||||
<section1 topic='IANA Considerations' anchor='iana'>
|
||||
<p>This document requires no interaction with &IANA;.</p>
|
||||
|
@ -109,6 +109,8 @@
|
||||
<query xmlns='http://jabber.org/protocol/disco#items'/>
|
||||
</iq>
|
||||
]]></example>
|
||||
<cve id="2017-5589" url="https://rt-solutions.de/en/cve-2017-5589_xmpp_carbons/">Name of a CVE relevant to the XEP</cve>
|
||||
<cve id="2017-5589">Another CVE with no primary source</cve>
|
||||
<section3 topic='3rd Level Heading' anchor='syling-examples-3rd'>
|
||||
<p>Text in a Sub-Sub-Section.</p>
|
||||
<section4 topic='4th Level Heading' anchor='syling-examples-4th'>
|
||||
|
16
xep.dtd
16
xep.dtd
@ -68,27 +68,27 @@ THE SOFTWARE.
|
||||
<!ELEMENT initials (#PCDATA)* >
|
||||
<!ELEMENT remark (#PCDATA | p | ul)* >
|
||||
<!ELEMENT councilnote (#PCDATA)* >
|
||||
<!ELEMENT section1 ( div | p | section2 | example | code | ul | ol | dl | table )* >
|
||||
<!ELEMENT section1 ( div | p | section2 | example | code | cve | ul | ol | dl | table )* >
|
||||
<!ATTLIST section1
|
||||
topic CDATA ''
|
||||
anchor CDATA '' >
|
||||
<!ELEMENT section2 ( div | p | section3 | example | code | ul | ol | dl | table )* >
|
||||
<!ELEMENT section2 ( div | p | section3 | example | code | cve | ul | ol | dl | table )* >
|
||||
<!ATTLIST section2
|
||||
topic CDATA ''
|
||||
anchor CDATA '' >
|
||||
<!ELEMENT section3 ( div | p | section4 | example | code | ul | ol | dl | table )* >
|
||||
<!ELEMENT section3 ( div | p | section4 | example | code | cve | ul | ol | dl | table )* >
|
||||
<!ATTLIST section3
|
||||
topic CDATA ''
|
||||
anchor CDATA '' >
|
||||
<!ELEMENT section4 ( div | p | section5 | example | code | ul | ol | dl | table )* >
|
||||
<!ELEMENT section4 ( div | p | section5 | example | code | cve | ul | ol | dl | table )* >
|
||||
<!ATTLIST section4
|
||||
topic CDATA ''
|
||||
anchor CDATA '' >
|
||||
<!ELEMENT section5 ( div | p | example | code | ul | ol | dl | table )* >
|
||||
<!ELEMENT section5 ( div | p | example | code | cve | ul | ol | dl | table )* >
|
||||
<!ATTLIST section5
|
||||
topic CDATA ''
|
||||
anchor CDATA '' >
|
||||
<!ELEMENT div ( #PCDATA | div | p | example | code | ul | ol | dl | table | blockquote )* >
|
||||
<!ELEMENT div ( #PCDATA | div | p | example | code | cve | ul | ol | dl | table | blockquote )* >
|
||||
<!ATTLIST div
|
||||
class CDATA ''
|
||||
style CDATA '' >
|
||||
@ -130,6 +130,10 @@ THE SOFTWARE.
|
||||
<!ATTLIST example caption CDATA '' >
|
||||
<!ELEMENT code (#PCDATA | span | em | strong)* >
|
||||
<!ATTLIST code caption CDATA '' >
|
||||
<!ELEMENT cve (#PCDATA)* >
|
||||
<!ATTLIST cve
|
||||
id CDATA ''
|
||||
url CDATA '' >
|
||||
<!ELEMENT table (tr)* >
|
||||
<!ATTLIST table caption CDATA '' >
|
||||
<!ELEMENT tr ( th | td )* >
|
||||
|
16
xep.xsd
16
xep.xsd
@ -209,6 +209,7 @@ THE SOFTWARE.
|
||||
<xs:complexType>
|
||||
<xs:choice maxOccurs='unbounded'>
|
||||
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='cve' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='dl' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
|
||||
@ -227,6 +228,7 @@ THE SOFTWARE.
|
||||
<xs:complexType>
|
||||
<xs:choice maxOccurs='unbounded'>
|
||||
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='cve' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='dl' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
|
||||
@ -245,6 +247,7 @@ THE SOFTWARE.
|
||||
<xs:complexType>
|
||||
<xs:choice maxOccurs='unbounded'>
|
||||
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='cve' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='dl' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
|
||||
@ -263,6 +266,7 @@ THE SOFTWARE.
|
||||
<xs:complexType>
|
||||
<xs:choice maxOccurs='unbounded'>
|
||||
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='cve' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='dl' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
|
||||
@ -283,6 +287,7 @@ THE SOFTWARE.
|
||||
<xs:element ref='p' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='cve' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='ul' minOccurs='0' maxOccurs='unbounded'/>
|
||||
<xs:element ref='ol' minOccurs='0' maxOccurs='unbounded'/>
|
||||
</xs:choice>
|
||||
@ -379,6 +384,17 @@ THE SOFTWARE.
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name='cve'>
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base='xs:string'>
|
||||
<xs:attribute name='id' use='required'/>
|
||||
<xs:attribute name='url' use='optional'/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name='table'>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
|
20
xep.xsl
20
xep.xsl
@ -1049,6 +1049,26 @@ content: "XEP-<xsl:value-of select='/xep/header/number'/>";
|
||||
</figure>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match='cve'>
|
||||
<figure class='cve'>
|
||||
<figcaption>CVE-<xsl:value-of select='@id'/>
|
||||
(<a><xsl:attribute name='href'>https://nvd.nist.gov/vuln/detail/CVE-<xsl:value-of select='@id'/></xsl:attribute>NIST</a>,
|
||||
<a><xsl:attribute name='href'>https://cve.mitre.org/cgi-bin/cvename.cgi?name=<xsl:value-of select='@id'/></xsl:attribute>Mitre</a>)
|
||||
</figcaption>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@url != ''">
|
||||
<a>
|
||||
<xsl:attribute name='href'><xsl:value-of select='@url'/></xsl:attribute>
|
||||
<xsl:apply-templates/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</figure>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match='img'>
|
||||
<img>
|
||||
<xsl:attribute name='alt'><xsl:value-of select='@alt'/></xsl:attribute>
|
||||
|
7
xmpp.css
7
xmpp.css
@ -1290,6 +1290,10 @@
|
||||
padding: 1.5em;
|
||||
border: 1px solid rgba(19, 181, 234, 1.0);
|
||||
}
|
||||
figure.cve {
|
||||
padding: 1.5em;
|
||||
border: 5px solid rgba(180, 0, 0, 1.0);
|
||||
}
|
||||
|
||||
figure > figcaption {
|
||||
margin-bottom: 0.5em;
|
||||
@ -1707,6 +1711,9 @@
|
||||
figure.example {
|
||||
background-color: #282828;
|
||||
}
|
||||
figure.cve {
|
||||
border: 5px solid rgba(120, 0, 0, 1.0);
|
||||
}
|
||||
|
||||
.box {
|
||||
color: #ccc;
|
||||
|
Loading…
Reference in New Issue
Block a user