INNER CODE UNIT · Java

initHeader

ron190/jsql-injection · model/src/main/java/com/jsql/model/InjectionModel.java:353

    private void initHeader(boolean isUsingIndex, String dataInjection, Builder httpRequest) {
        if (!this.mediatorUtils.parameterUtil().getListHeader().isEmpty()) {
            Stream.of(
                this.buildQuery(
                    this.mediatorMethod.getHeader(),
                    this.mediatorUtils.parameterUtil().getHeaderFromEntries(),
                    isUsingIndex,
                    dataInjection
                )
                .split("\\\\r\\\\n")
            )
            .forEach(header -> {
                if (header.split(":").length == 2) {
                    try {  // TODO Should not catch, rethrow or use runtime exception
                        HeaderUtil.sanitizeHeaders(
                            httpRequest,
                            new SimpleEntry<>(
                                header.split(":")[0],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…