FOR EDUCATIONAL PURPOSES ONLY!!!
THIS ISSUE IS RELATED TO HACKING NOT JUST KIRBY BUT THE WHOLE WEBSITE INCLUDING FTP AND CPANELā¦ THIS IS DUE TO THE HTACCESS RULES THAT ISNT SUPPORTED ON ALL WEBSERVERā¦ PLEASE READ CAREFULLY; I EXPLAINED IT WELL. BUT PLEASE ASK QUESTIONS IF YOU HAVEā¦
Actually, Bastian is right. No software is 100% secure. There must me some small holes that can be used to peek-in a little bit, and in that little hole you can get ALL or NOTHINGā¦ AND I JUST HAPPENED TO DISCOVER A SMALL HOLE THAT PROVES IT, THOUGH ONLY PRESENT ON SOME SERVERS; maybe this is because of server misconfiguration, but anyways let me share this with youā¦
First let me introduce you these 3 htaccess rules in the starterkit.
RewriteRule ^content/(.*)\.(txt|md|mdown)$ error [R=301,L]
RewriteRule ^site/(.*) error [R=301,L]
RewriteRule ^kirby/(.*) error [R=301,L]
The goal of these rules is to redirect you to the not found page if you tried to open or view the txt/md/mdown files and site/kirby directoriesā¦
EXAMPLE:
you requested to access url http://www.example.com/content/site.txt in your browser, but those htaccess rules are blocking them so it should instead redirect you to url http://www.example.com/error.
##FEELING SAFE?
On the other hand, many webservers nowadays are misconfigured or shall we say does not support those 3 htaccess rules completelyā¦ in most cases, incompatibility reveal the full root directory location (IF MY TERMS WERE RIGHT)ā¦ So it should show something like /home/usr****/public_html/error** in the urlā¦
##Just Directory? No Big Deal!
Itās not just about directories. Most webservers (especially shared webserver/hosting) uses your username(can be an ftp username) as part of the locationā¦
EXAMPLE:
/home/ USERNAME_HERE /public_html/
PROOF:
You requested to access url http://www.example.com/content/site.txt in your browser, but those incompatible htaccess rules are blocking them so it instead redirects you to url http://www.example.com/home/usr****/public_html/error**.
So hackers donāt have to worry about the ftp username, the only thing they have to worry about is the ftp passwordā¦ Anyway TRIAL AND ERROR is not a big problem especially if the ownerās ftp password is weakā¦
I managed to hack a website in the SHOWCASE page with full ftp access + his ftp and cpanel username and password are the same THEN I GOT COMPLETE ACCESS TO THE WHOLE WEBSITE AS IF I WAS THE OWNERā¦ Good thing I am a good guy, I didnāt touched anythingā¦
I was so nervous because itās my first time to hack a website with complete accessā¦
PS: DONT ASK THE WEBSITE, I WONT TELL YOU ANYWAYā¦