Skip to content

Instantly share code, notes, and snippets.

View Badranh's full-sized avatar
:shipit:
Working from home

Hasan Badran Badranh

:shipit:
Working from home
View GitHub Profile
@Badranh
Badranh / CVE-2024-44843.md
Last active April 4, 2025 09:16
Unauthenticated WebSocket Access in SteVe v3.7.1 Allows Remote Command Execution via Crafted OCPP Requests

Unauthenticated WebSocket Access in SteVe v3.7.1 Enables Remote Command Execution

Summary

A critical vulnerability in the SteVe (v3.7.1) Open Charge Point Central System allows unauthenticated remote attackers to establish a WebSocket connection and issue arbitrary OCPP (Open Charge Point Protocol) requests. This flaw permits attackers to execute commands without authentication, leading to unauthorized access and manipulation of EV charging operations.

References

  1. GitHub Issue #1546 ( steve-community/steve#1546 )
@Badranh
Badranh / BaseViewHolder.java
Created June 30, 2019 15:40
Interface to be implemented in the class where binding of the generic Recycler View Cells will occur
public interface BaseViewHolder {
interface Binder<T>{
void bindViewHolders(T viewHolder,int pos);
int getViewHoldersCount();
}
}
@Badranh
Badranh / BaseRecyclerViewAdapter.java
Created June 30, 2019 15:37
Generic Recycler View Class
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import static androidx.recyclerview.widget.RecyclerView.*;